发布网友 发布时间:2024-12-18 21:31
共1个回答
热心网友 时间:2024-12-31 08:52
FILE *fp1;
FILE *fp2;
FILE *fp3;
char str2[128];
fp1=fopen("a.txt","r");
fp2=fopen("b.txt","r");
fp3=fopen("c.txt","w");
fscanf(fp1,"%s",str2);
fprintf(fp3,"%s",str2);
fscanf(fp2,"%s",str2);
fprintf(fp3,"%s",str2);
fclose(fp1);
fclose(fp2);
fclose(fp3);