单项选择题
下列语句不能够用于打开C根目录下文件test.txt的语句是
A.ifstream fin;fin.open("C:\\test.txt");
B.ifstream fin("C:\\test.txt");
C.和
D.ifstream fin;fin("C:\\test.txt");
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面程序段的运行结果是 #include<iostream.h> void main( ) char*s= abcde ; S+=2; cout<<&s;
A.cde
B.字符'c'
C.字符'c'的地址
D.无确定的输出结果
点击查看答案&解析
单项选择题
与y=(x>0 1:x<0 -1:0);的功能相同的if语句是
A.if(x>0)y=1
else if(x<0)y=-1;
else y=O;
B.if(x)
if(x>0)y=1;
else if(x<0)y=-1;
C.y=-1;
if(x)
if(x>0)y=1;
else if(x==0)y=0;
else y=-1;
D.y=0;
if(x>=0)
if(x>0)y=1;
else y=-1;
点击查看答案&解析
相关试题
构造函数是和 【15】 同名的函数。
要采用“cin,tout”进行输入输出时,必须...
表达式x.operator+(y.operator++(0...
类test的析构函数是 【12】 。
常数据成员和静态数据成员在使用前共同的要...