B、3
C、2、3
D、1
第1题
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<< result<< endl;
10)}
程序的第5行中的cout表示:()
A、显示字符串
B、标准输出的流设备
C、标准输入的流设备
D、程序入口
第2题
#include<iostream>
using namespace std;
class Base1{
public:
Base1(int D){cout<<d;}
~Base1(){}
};
class Base2{
public:
Base2(int D){cout<<d;}
~Base2 (){}
};
class Derived:public Base1, Base2{
public:
Derived(int a, int b, int c, int D) ;
Base1(B), Base2(
A), b1(D), b2(C){}
Private:
int b1;
int b2;
};
int main(){
Derived d(1, 2, 3, 4);
return 0;
}
运行时的输出结果是( )。A) 1234
B) 2134
C) 12
D) 21
A.
B.
C.
D.
第3题
A.121
B.21
C.211
D.12
第4题
A.121
B.21
C.211
D.12
第5题
A.F1Derive F2Base
B.F1Derive F2Derive
C.F1Base F2Base
D.F1Base F2Derive
第6题
A.F1Derive F2Base
B.F1Derive F2Derive
C.F1Base F2Base
D.F1Base F2Derive
第7题
A.**100
B.***64
C.100**
D.64***
第8题
A.BBBff)D
B.BBDfDDDf
C.DD
D.DDBBBf
第9题
A.为空
B.HI
C.HELL0
D.TEST
第10题
A.F1Derive F2Base
B.F1Derive F2Derive
C.F1Base F2Base
D.F1Base F2Derive
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!