black

登录

单项选择题

有如下程序:
#include<iostream>
usingnamespacestd;
classDA{
intk;
public:
DA(intx=1):k(x){}
~DA(){cout<<k;}
};
intmain(){
DAd[]={DA(3),DA(3),DA(3));
DA+p=newDA[2];
delete[]p;
return();
}
这个程序的输出结果是(  )。

A.111
B.333
C.11333
D.11133
相关考题

单项选择题 有如下程序: #include<iostream.h> usingnamespacestd; classDemo { public: Demo(){cout<<"defaultconstructor\n";} Demo(constDemo&x){cont<<"copyconstruc- tor\n";} }; DemouserCode(Demob){Democ(b);returnC;} intmain() { Demoa;d; cout<<"callinguserCode()\n"; d=userCode(a): return0; } 执行上面程序的过程中,构造函数Demo(  )和Demo(constDem0&x)被调用的次数分别是(  )。

判断题 ( )总应力为自重应力时,饱和土中孔隙水压力为静水压力,静水压力不会产生土体变形,在自重应力作用下由粒间有效应力产生土的体积变形。

判断题 ( )土与一般建筑材料相比,具有散体性、多样性和自然变异性。

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064