全部题库 / C++ / 试题详情
单选题 C++
2008-03-20

有如下程序:  
#include 
using namespace std;  
class test {  
private:  
int a;  
public:  
test(){cout <<”constructor”< test(int A.{cout< test(const test&_test) 
{  
a=_testa;  
cout <<”copy constructor”< } 
test(){cout <<”destructor”< }; 
int main()  
}  
test A(3)  
return0;  
运行时输出的结果是(  )。

A.3  
B.constructor  
destruclor  
C.copy constructor  
D.3  
dstructor destruclor

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题