下面程序把从终端读入的文本(用“@”作为文本结束的标志)复制到一个名为bi.dat的新文件中,请填空。 #include FILE *fp; main() { char ch; { printf("can not open"); i

admin2016-12-25  16

问题 下面程序把从终端读入的文本(用“@”作为文本结束的标志)复制到一个名为bi.dat的新文件中,请填空。
  #include
  FILE *fp;
  main()
  { char ch;
  { printf("can not open");
  if((fp=_________)==NULL{ printf("can not open");/*第一空*/
  exit(0);}
  while((_________)!=’@’)/*第二空*/
  fputc(ch,fp);
    ________;/*第三空*/
  }

选项

答案31.fopen( "bi.dat","W") ch=getchar() fc10se(fp)

解析
转载请注明原文地址:https://kaotiyun.com/show/pNAx777K
0

相关试题推荐
随机试题
最新回复(0)