• 2021-04-14
    以下程序的功能是将文件file.c的内容输出到屏幕上并复制到文件file2.c中。请填空。int main (void){
    FILE *fp1,*fp2;
    fp1=fopen("file1.c","r");
    fp2=fopen("file2.c","w");
    while(!feof(fp1))
    putchar(fgetc(fp1));
    ____;
    while(!feof(fp1))
    fputc(____);
    fclose(fp1);
    fclose(fp2);
    return 0;}
  • 举一反三