下面程序把从终端读入的文本(用“@”作为文本结束的标志)复制到一个名为bi.dat的新文件中,请填空。 #include<stdio.h> FILE *fp; main() {char ch; {printf("can not open"); if((fp=______)==NULL{printf("can not pen");/*第一空*/ exit(0);} while((______)!=’@’)/*第二空*/ fpute(ch,fp); ______;/*第三空*/ }
查看答案
下列不属于宽带城域网QoS技术的是______。
A. DWDM
B. DiffServ
C. RSVP
D. MPLS
专门判断文件是否结束的函数feof(),如果返回值为0,则表示文件______。
已知:struct{int x,y;}apple[2]={{1,3},{5,7}},*p=apple;则表达式(++p)->x的值为______。
下面的程序使用结构型来计算复数x和y的和。 main() {struct apple {float re; float im; }; ______x,y,z; /*第一空*/ scanf("%f,%f,%f,%f",&x.re,&x.im,&x.re,&x.im); z.re=______;z.im=______; /*第二、第三空*/ printf("%6.2f+%6.2fi\n",z.re,z.im); }