stray\'\\241\'in program

2500阅读 0评论2012-04-23 cherish568
分类:C/C++

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;
}
上一篇:gdb调试技术
下一篇:获得已终止线程的退出码