clearerr(stdin) is standard, fflush(stdin) isn't. From http://www.cplusplus.com/ref/cstdio/clearerr.htmlOriginally Posted by KoG Metalgod
Reset error and EOF indicators of the given stream.
clearerr(stdin) is standard, fflush(stdin) isn't. From http://www.cplusplus.com/ref/cstdio/clearerr.htmlOriginally Posted by KoG Metalgod
Reset error and EOF indicators of the given stream.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.