题库 软件开发 题目列表 执行如下程序后的输出结果是:#includeclass test{sta...
单选题
执行如下程序后的输出结果是:
#include
class test{
static int count;
public:
test(){count++;}
~test(){count--;}
static int getCount(){return count;}
};
int test::count=0;
int main()
{
test * p=new test;
test * q=new test;
delete p;
cout<<"count="<<test::getCount()<<endl;
return 0;
}
A.

count=0

B.

count=1

C.

count=2

D.

count=3

题目信息
校招真题
-
正确率
0
评论
15
点击