C语言编程实现:将一个文件的内容复制到另一个文件。(详细点的,考试用...答:FILE *fp1,*fp2; char buf[1024]; fp1=fopen("C:/1.dat","rb"); fp2=fopen("C:/2.dat","wb"); fread(buf,1024,1,fp1); while(!feof(fp1)) { fwrite(buf,1024,1,fp2); fread(buf,1024,1,fp1); } fclose(fp1); fclose(fp2);} tanyuguo | 发布于2011-12-16 举报| 评论(3) 1...