View Single Post
Old Apr 18th, 2007, 10:23 PM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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".
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote