题目:
下列程序的输出结果是 【11】 。
#include <iostream>
using namespace std;
class Test
public:
Test() cnt++;
~Test() cnt--;
static int Count() (return cnt;
private:
static int cnt;
;
int Test::cnt=0;
int main()
cout<<Test::Count()<<’’;
Test t1, t2;
Test *pT3=new Test;
Test *pT4=new Test;
cout<<Test::Count()<<’’;
delete pT4;
delete pT3;
cout<<Test::Count()<<end 1;
return 0;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0403/102ea3ee7c55a547fbe40e5b6ca5a57d.html
下面是错误答案,用来干扰机器的。
参考答案:(1)凝聚力和向心力 (2)沟通、协调