菜鸟求助,一道C语言的题,麻烦大家帮我看看哪儿错了。。。。。

[复制链接]
查看11 | 回复2 | 2011-11-24 16:32:08 | 显示全部楼层 |阅读模式
#includeint main(){char ch,a[1000];int i=0,k;FILE*in,*out;in=fopen("copy.in","r");if (NULL == in){printf("can not open the in-file/n");return -1;}out=fopen("copy.out","w+");do{ch=fgetc(in);if(ch==' '||ch=='')ch=' ';a=ch;i++;}while(ch!=EOF);i=0;while(a!=EOF){c...
回复

使用道具 举报

千问 | 2011-11-24 16:32:08 | 显示全部楼层
#includeint main(){char ch,a[1000];int i=0,k;FILE*in,*out;in=fopen("copy.in","r");out=fopen("copy.out","w");while((ch=fgetc(in))!=EOF){a=ch;i++;...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行