>have you tried cin.ignore();
That solution is incomplete, hence the existence of this thread. Did you even bother reading it?
>Forget iostream.
>USe fflush() see it helps??
Please don't riddle my thread with bad advice. If you don't understand why your solutions are hideous, you have no business suggesting them to other people. Learn first, then teach.
Bad Cop
Offline 11,807 posts
since Sep 2004