In the case of an input failure before any data could be successfully read, EOF is returned. ... { int c; while((c=getchar())!='\n'&&c!=EOF); } // clear stdin.
確定! 回上一頁