quote:Original post by Greatwolf
either use system("pause"); for pausing, like mentioned before, or use this:while(cin.get()!=''\n'')//clears out all the crap still in the stream continue;cin.get();
--{You fight like a dairy farmer!}
You don''t need the
std::cin.get()
call after the loop. The last iteration of the loop should remove the newline character from the input queue. :] [ Google || Start Here || ACCU || STL || Boost || MSDN || GotW || MSVC++ Library Fixes || BarrysWorld || E-Mail Me ]