试题查看

【单选题】

有如下程序:
#inCluDE <iostrEAm>
using nAmEspACE stD;
ClAss tEst
privAtE:
int A;
puBliC:
tEst() Cout<<"ConstruCtor"<<EnDl;
tEst(int A)Cout<<A<<EnDl;
tEst(Const tEst& _tEst)
A=_tEst.A;
Cout<<"Copy ConstruCtor"<<EnDl;
~tEst() Cout<<"DEstruCtor"<<EnDl;
;
int mAin()
tEstA(3);
rEturn 0;
运行时输出的结果是()。
A.3
B.ConstruCtor
DEstruCtor
C.CopyConstruCtor
DEstruCtor
D.3
DEstruCtor

查看答案解析

参考答案:

正在加载...

答案解析

正在加载...

根据网考网移动考试中心的统计,该试题:

3%的考友选择了A选项

20%的考友选择了B选项

5%的考友选择了C选项

72%的考友选择了D选项

你可能感兴趣的试题

有如下程序:#include<iostream>usingnamespacest下面程序的输出结果是()。#include<iostream>usingname下列程序的运行结果为()。#include<iostream.h>voidmai下列程序的输出结果是______。publicclassTestvoidprin假设线性表的长度为n,则在最坏情况下,冒泡排序需要的比较次数为()。A.log2对于下面定义的类MyClass,在函数f()中将对象成员n的值修改为50的语句应