赞题库-背景图
单项选择题

有如下程序: #include<iostream> using narnespace std; class test{ private: int a; public: test0{cout+’’constructor’’+endl;} test(int a){cout+a+endl;} test(const test&test) { a=test.a; cout+’’copy constructor’’+en.d1; } test(){ cout+’’destructor"+endl;} }; int main() { testA(3); return 0; } 运行时输出的结果是( )。

A.3
B.constructor destructor
C.copy constructor destructor
D.3 destructor