There is no flush() for istream.
There is no flush() for istream.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thanks jlou. For some strange reason I had the two streams confused in my mind (going into the input buffer then waiting, then coming out of the input buffer when cin.get() was called... "out of", ah! output!... silly )Since endl flushes the output stream, it wouldn't help much in clearing the input stream.