fstream、ifstream和ofstream文件流类的成员函数______关闭文件。
相关问题推荐
-
以下程序的输出结果是includelong fun(int n){long s;if(n=1||n=2)s=2;else s=n-fu
以下程序的输出结果是 #include<iostream.h> long fun(int n) {long s; if(n=1||n=2) s=2; else s=n-fun(n-1): return s; } void main() {cout<<fun(3);=
A.1
B.2
C.3
D.4
-
为了暂时关闭计时器,应把该计时器的某个属性设置为False,这个属性是()。
A.Visible
B.Timer
C.Enabled
D.Interval
-
有以下程序:include main( )}char a,b,e,d;seanf("% e,% e,% d,% d" ,&a,&b,&
有以下程序:#include <stdio.h>main( )} char a,b,e,d; seanf("% e,% e,% d,% d" ,&a,&b,&c,&d); printf("% c,% c,% e,% c \n" ,a,b,c,d);若运行时从键盘上输入:6,5,65,66 <回车>,则输出结果是( )。
A.6,5,A,B
B.6,5,65,66
C.6,5,6,5
D.6,5,6,6
-
设窗体上有一个名为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.输入错误
-
在文本框控件中,将Text的内容全部显示为用户所定义的字符的属性是()。
A.PasswordChar
B.需要编程来实现
C.Password
D.以上都不是