fopen打开新的二进制文件,既能读又能写的方式字符串是()
A."ab+"
B."rb+"
C."wb+"
D."ab"
Nobody enjoys having a tooth______.
A.drill and fill
B.drilling and filling
C.to drill and fill
D.drilled and filled
将一个文本文件ma.dat拷贝到另一个文本文件na.dat中。
#include<stdio.h>
main()
{
FILE*ma,*na;
ma=fopen("ma.dat",______);/*第一空*/
na=fopen("na.dat","w");
while(!feof(ma))fputc(fgete(ma),______)/*第二空*/
felose(na);______;/*第三空*/
}
#include"stdio.h"
main()
{FILE*I=fp;char ch;
if((tp=fopen("test.txt","W"))==NULL)
{printf("cannot open file\n");exit(0);}
ch=getchar();
while(ch!='$')
{fputc(ch,fp);putchar(ch);
ch=getchar();}
fclose(*fp);
}
错误:______
改正:______
参考答案:错误
This passage is mainly about ______.
A.the beginnings of oceanography
B.the laying of the first undersea cable
C.the investigation of ocean depths
D.the early intercontinental communications
若fp已下确定义为一个文件指针,d1.dat 为二进制文件,请填空,以便为“读”而打开此文件:fp= fopen(【 】);。
A.A.So fine was the weather
B.B.So was the fine weather
C.C.The weather so fine was
D.D.So the weather was fine
A public company that fails to obey the new law could be forced to ______.
A.pay a heavy fine
B.close down its business
C.change to a private business
D.sign a document promising to act