题目内容
(请给出正确答案)
[主观题]
假定一个类 AB 只含有一个整型数据成员 a,当用户不定义任何构造函数 时,系统为该类定义的无参构造函数为()。
A. AB() {a=0;}
B. AB(int aa=0): a(aa) {}
C. AB(int aa): a(aa) {}
D. AB() {}
答案
查看答案
A. AB() {a=0;}
B. AB(int aa=0): a(aa) {}
C. AB(int aa): a(aa) {}
D. AB() {}
第1题
A.A(){x=0;}
B.A(intA=0):x(a){}
C.A(){}
D.A(intA):x(a){}
第4题
A.正确
B.错误
第5题
A.正确
B.错误
第8题
A.正确
B.错误
第9题
A.structnode{intinfo;structnodelink;};
B.structnode{intinfo;node*link;};
C.structnode{intinfo;struct*link;};
D.structnode{intinfo;structnode*link;};
第10题
A.structnode{intinfo;structnodelink;};
B.structnode{intinfo;node*link;};
C.structnode{intinfo;struct*link;};
D.structnode{intinfo;structnode*link;};