#include "stdio.h"
#include "stdlib.h"
void main( )
{ FILE *infp,*outfp; char ch;
if ((infp=fopen(“c:\\infile.c”, “r”))== NULL)
{ printf(“Cannot open this infile. \n”);
exit(0);
}
if ((outfp=fopen(“c:\\outfile.c”, “w”))== NULL)
{ printf(“Cannot open this outfile. \n”);
exit(0);
}
while(!feof(infp))
if((ch=fgetc(infp))!=EOF)
fputc(ch,outfp);
fclose(infp);
fclose(outfp);
}
fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
// 双引号用错了,换成半角双引号即可
#include <stdio.h>依然无法通过啊,还是那个错误
追答你把我上传的代码复制到你的编译环境,再编译看看,如果仍出现这样的错误,可能是的编译器有问题,该重新安装或更换了。
...error C1010: unexpected end of file while looking for precomp...
include <stdio.h>#include <stdlib.h>void main() {FILE *infp,*outfp;char ch;if((infp = fopen("c:\\\\infile.c","r")) == NULL) {printf("Cannot open this infile. \\n");exit(0);}if((outfp = fopen("c:\\\\outfile.c","w")) == NULL) {printf("Cannot open this out...