Chinaunix首页 | 论坛 | 博客
  • 博客访问: 826170
  • 博文数量: 109
  • 博客积分: 650
  • 博客等级: 上士
  • 技术积分: 1483
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-01 17:29
文章分类

全部博文(109)

文章存档

2016年(5)

2015年(21)

2014年(16)

2013年(38)

2012年(29)

分类: C/C++

2012-04-23 12:01:51

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;
}
阅读(2291) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~