题目内容
C盘中p1.c.txt文件的内容为:abcde。A盘中p1.c.txt为空文档。 #include<stdio.h> #include<stdib.h> main() {FILE *f1 *f2; int k; if((f1=fopen("C:\\p1.c.txt","r"))==NULL) {printf("can not open file!\n"); exit(0); } if((f2=fopen("A:\\p1.c.txt","w"))==NULL) {printf("can not open file!\n"); exit(0); } for(k=1;k<=500;k++) {if(feof(f1))break; fputc(fgetc(f1),f2); } fclose(f1); fclose(f2); } 以上程序的功能是______。
查看答案
搜索结果不匹配?点我反馈