• 2022-05-30
    以下程序是把文件file1.dat中的内容复制到一个名为file2.dat新的文件中,请补全程序。#includevoidmain(){FILE*fpr,*fpw;if((fpr=fopen("file1.dat","rb"))==NULL)exit(0);if((fpw=fopen(________________,"wb"))==NULL)exit(1);while(!feof(fpr))fputc(_________________,fpw);fclose(fpr);fclose(fpw);}
  • 举一反三