首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
自考
下面程序把从终端读入的文本(用“@”作为文本结束的标志)复制到一个名为bi.dat的新文件中,请填空。 #include FILE *fp; main() { char ch; { printf("can not open"); i
下面程序把从终端读入的文本(用“@”作为文本结束的标志)复制到一个名为bi.dat的新文件中,请填空。 #include FILE *fp; main() { char ch; { printf("can not open"); i
admin
2016-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
高级语言程序设计
理工类
相关试题推荐
对系统程序员不透明的应当是()
若主存有4个页,每页256个字,现有一个2008个字的程序,其访问虚存的地址流为40、80、534、580、180、800、2000、300、320、1560、1600,现采用FIFO算法进行页面替换。计算主存的命中率H。
某一个系统有4个中断级,中断级屏蔽位“1”对应于开放,“0”对应于屏蔽,各级中断处理程序的中断级屏蔽位设置如下表所示。如果所有的中断处理都各需要3个单位时间,当正在运行主程序时,同时发生2、3级中断请求,过两个单位时间又同时有1、4级中断请求,试画出
某一个系统有4个中断级,中断级屏蔽位“1”对应于开放,“0”对应于屏蔽,各级中断处理程序的中断级屏蔽位设置如下表所示。当中断响应优先次序为1→2→3→时,其中断处理次序是什么?
程序员编写程序时使用的地址是()
对系统程序员不透明的应当是()
_______的静态调度是指依靠编译器对代码进行静态调度,以减少相关和冲突。它不是在程序执行的过程中、而是在________期间进行代码调度和优化的。
从计算机系统结构上讲,机器语言程序员所看到的机器属性是()
在一台单流水线多操作部件上执行下面的程序,取指令、指令译码各需要一个时钟周期,MOVE、ADD和MUL操作各需要2、3个和4个时钟周期。每个操作都在第一个时钟周期从通用寄存器中读操作数,在最后一个时钟周期把运算结果写到通用寄存器中。k:MOV
随机试题
A.腰椎结核B.腰椎骨折C.腰椎骨关节炎D.腰椎间盘突出症E.颈椎病X线显示椎体边缘破坏,椎间隙变窄是
男,5岁。右侧可复性腹股沟斜疝,最佳手术治疗方法应选择
急性肾功能衰竭。高钾血症患者,心率40次/分应首先采取的治疗措施是
受到高热、磨擦、冲击后能产生剧烈反应而发生大量气体和热量,引起爆炸的化学药品是具有强烈腐蚀性,甚至引起燃烧、爆炸和杀伤性药品是
施工现场内的下列场所应配置灭火器()。
互联网好比一个复杂多样的虚拟世界,每台联网主机上的信息又构成了一个微观虚拟世界,若在某主机上可以访问本主机的信息,则称该主机相通于自身,若主机X能通过互联网访问主机Y的信息,则称X相通于Y。已知代号分别为甲、乙、丙、丁的四台联网主机有如下信息:(1)甲主
请用所给的实验材料和用具,设计实验来验证哺乳动物的蔗糖酶和淀粉酶的催化作用具有专一性,要求完成实验设计、补充实验步骤、预测实验结果、得出结论,并回答问题。实验材料与用具:适宜浓度的蔗糖酶、唾液淀粉酶、蔗糖、淀粉4种溶液,斐林试剂、试管、37℃恒温水浴锅、沸
公安机关及其人民警察(),是构成公安赔偿责任的必要条件。
AlltherecentnewsonAIDSisbad.ThedeathofRockHudson【C1】______publicconcernaboutthe【C2】______almosttothepointofp
A、 B、 C、 C
最新回复
(
0
)