Syntax:
#include <cstdio> void clearerr( FILE *stream );
clearerr函数重置给定文件流的错误标志和EOF标示符。当错误发生时,可以使用perror()查看实际发生了什么错误。
相关主题: feof, ferror, perror