//合并文件mergeFile (infile1, infile2, filenmae)voidmergeFile(FILE *fp1,FILE *fp2,char*name){ FILE*fd1,*fd2,*fp3; unsignedcharbuf[BUFFER_SIZE];charfilename[100]; strncpy(filename,name,sizeof(filename));intrc1,rc2; fd1= fopen(fp1,"rb"); fd2= fopen(fp2,"rb"); fp3= fopen(file...
循环体错误,差括号 修改如下: while(!feof(fp1)|| !feof(fp2) )if (!feof(fp1)){ch1=fgetc(fp1);fputc(ch1,fp3);} if (!feof(fp2)) { ch2=fgetc(fp2);fputc(ch2,fp3); } }