I seem to ALWAYS need to use cin.ignore in my programs (console apps
using Dev C++ for a University course).
The problem is that if I don't ignore ENOUGH characters then it's like
not having the cin.ignore. If I ignore too many that's just as bad.
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.
What is it? (It has just GOT to exist...)
The things I don't know about C++ could fill volumes! Oh, wait... they
already do ;)
Thanks.