Remove the delimeter after cin.get()

C++

Public Domain

Removes delimeter without ignoring an arbitrary number of input chars

Download (right click, save as, rename as appropriate)

Embed

1
2
cin.get(foo);
while(cin.get()!='\n'); //as opposed to cin.ignore(100, '\n');