|
Okay, I posted that while Seif was posting. Fflush (stdin) is not defined to work, though some compilers will implement it. It's also a C, not C++ paradigm. In C, one can use "rewind (stdin);". That sounds silly, but just read about it. In C++, just check out "ignore".
|