单项选择题

<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的结果是 #include<iostream.h> class test{ private: int num; public: test( ); int getint( ) {return num;} ~test( );}; test::test( ) { num=0;} test::~test( ) { cout<< Destructor is active <<endl;} void main( ) { test x[3]; cout<< Exiting main <<endl;}
A.Exiting main  Destructor is active  Destructor is active  Destructor is active
B.Exiting main  Destructor is active  Destructoris active
C.Exiting main  Destructoris active
D.Exiting main
填空题
常用的黑箱测试有等价分类法、 【1】 、因果图法和错误推测法4种。
相关试题
  • 构造函数是和 【15】 同名的函数。
  • 常数据成员和静态数据成员在使用前共同的要...
  • 类test的析构函数是 【12】 。
  • 表达式x.operator+(y.operator++(0...
  • 要采用“cin,tout”进行输入输出时,必须...