问题详情

fstream、ifstream和ofstream文件流类的成员函数______关闭文件。

未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。 收藏该题
查看答案

相关问题推荐

if语句基本形式是:if(表达式)语句,以下关于“表达式”值的叙述中正确的是()。A.必须是逻辑值S

if语句基本形式是:if(表达式)语句,以下关于“表达式”值的叙述中正确的是()。

A.必须是逻辑值

B.必须是整数值

C.必须是正数

D.可以是任意合法的数值

下列程序的输出结果是【】。 include include using namespace std; void fun(c

下列程序的输出结果是【 】。

include<iostream>

include<cstring>

using namespace std;

void fun(const char *s,char &c){c=s[strlen(s)/2];}

int main()

{

char str[]="ABCDE";

char ch=str[1];

fun(str,ch);

cout<<ch;

return 0;

}

为了暂时关闭计时器,应把该计时器的某个属性设置为False,这个属性是()。

A.Visible

B.Timer

C.Enabled

D.Interval

设窗体上有一个名为Text1的文本框和一个名为Command1的命令按钮,并有以下事件过程: Private Sub Command1 Click( ) X!=Val(Text1.Text) Select Casc x Case Is<-10,Is>=20 Print"输入错误" Case Is<0 Print 20-x Case Is<10 Print 20 Case Is<=20 Print x+10 End Seleet End Sub 程序运行时,如果在文本框中输入-5,则单击命令按钮后的输出结果是( )。

A.5

B.20

C.25

D.输入错误

有以下程序: #include #include typedef struct{char name[9];char sex;int score[2];}STU; STU f(STU a) { STU b={"Zha0","m",85,90}; int i; strcpy(a.name,b.name); sex=b.sex; for(i=o;i<2;i++)a.score[i]=b.score[i]; return a; } main( ) { STU c={"Qian",f,95,92),d; d=f(c); printf("%S,%C,%d,%d,",d.name,d.sex,d.score[0],d.score[l]); printf("%s,%c,%d,%d\n",C.name,C.sex,c.score[0],C.score[1]); } 程序运行后的输出结果是( )。

A.Zhao,m,85,90,Qian,f,95,92

B.Zhao,m,85,90,Zhao,m,85m90

C.Qian,f,95,92,Qian,f,95,92

D.Qian,f,95,92,zhan,m,85,90

联系客服 会员中心
TOP