>>764
問題2
#include <stdio.h>
int main(){
FILE *fin,*fout;
int c;
if((fin=fopen("in.txt","r"))==NULL)
return -1;
if((fout=fopen("out.txt","w"))==NULL)
return -1;
printf("\n/*********************************\n");
printf("* src *\n");
printf("*********************************/\n");
while((c=fgetc(fin)) != EOF){
fputc(c,fout);
putc(c,stdout);
}
fclose(fin);
fclose(fout);

if((fin=fopen("out.txt","r"))==NULL)
return -1;
printf("\n/*********************************\n");
printf("* dest *\n");
printf("*********************************/\n");
while((c=fgetc(fin)) != EOF){
putc(c,stdout);
}
fclose(fin);
return 0;
}