填空题
下面程序把从终端读入的文本(用@作为文本结束标志)输出到一个名为bi.dat的新文件中。请填空。
#include "stdio.h"
FILE*fp;
{char ch;
if((fp=fopen(
1
))==NULL)exit(0);
while((ch=getchar())!='@')fputc(ch,fp);
fclose(fp);
}
1、
【正确答案】
1、"bi.dat","w"或"bi.dat","wt"或"bi.dat","w+t"
【答案解析】
提交答案
关闭