例:将英文26个字母写入文件myfile3。txt,再将其复制给文件myfile4。txt#include#includeVoid main(){FILE *fp1, *fp2; Char c;if(fp1=fopen(“myfile3。
txt”,”w”)= =NULL) {printf(“Can’t open file。\n”);exit(0);}Char ch=’A’;Do{Putc(ch,fp1);}while(ch++!=’Z’);Fclose(fp1);fp1= fopen(“myfile3。
txt”,”r”);if(fp2=fopen(“myfile4。txt”,”w”)= =NULL){printf(“Can’t open myfile4。txt。
\n”);exit(0);}While(c=getc(fp1)!=EOF){putc(c,fp2);putc(c,stdout);}Putchar(’\n’);Fclose(fp1);Fclose(fp2);}运行结果应为:ABCDEFGHIJKLMNOPQRSTUVWXYZ但编译、运行出错,请教高手错在哪里?。