stray'\241'in program
C++出现此错误一般是程序中有中文空格 中文引号 中文各种标点符号等引起的
修改下就ok.
#include
int main(void)
{
FILE *stream;
stream = fopen("new.txt","w+");
fprintf(stream,"this is a test");
printf("this file pointer is at %ld\n",ftell(stream));
fclose(stream);
return 0;
}
阅读(2368) | 评论(0) | 转发(0) |