語法
#include <cstdio> void clearerr( FILE *stream );
clearerr 函式重置給定流的錯誤標誌和 EOF 指示符。當發生錯誤時,你可以使用 perror() 來找出實際發生的錯誤。