Quote Originally Posted by KoG Metalgod
clearerr(stdin); are you sure the command is not fflush(stdin)?
clearerr(stdin) is standard, fflush(stdin) isn't. From http://www.cplusplus.com/ref/cstdio/clearerr.html
Reset error and EOF indicators of the given stream.