文件程序有点问题,进来瞅瞅
#include<stdio.h>void copyfile(FILE *,FILE *);
main()
{
FILE *fpin,*fpout;
fpin=fopen("shiyan","r");
fpout=fopen("yuesefu","w");
copyfile(fpin,fpout);
fclose(fpin);fclose(fpout);
}
void copyfile(FILE *fpin,FILE *fpout)
{
char ch;
ch=fgetc(fpin);
while (!feof(fpin))
{ putc(ch,fpout);ch=fgetc(fpin);}
}
"shiyan"和'yuesefu'两个文件都存在,编译时出现错误提示为有意外的ASCII字符,删除文字就OK,可是还是没解决啊