?
=?ISO-8859-15?Q?Juli=E1n?= Albo
There has got to be some way to just say 'if there is anything in the
input stream or buffer get rid of it' so I can start fresh so to speak.
Maybe what you really want is "ignore until end of line"? You can use for
example:
while (cin && cin.get () != '\n')
continue;
The continue is just for clarity, an empty loop body leads to confusion.
But IMO the better way when you want input delimited by lines is to read
always with getline, and then parse the lines individually. Mixing << and
getline or ignore is confusing and error prone.