有如下程序: #include<iostream> using namespace std; class Test { public

计算机 程序 已帮助 人

有如下程序: #include<iostream> using namespace std; class Test { public: Test(){n+=2;} ~Test(){n-=3;} static int getNum(){return n;} private: static int n; }; int Tesl::n=1 int main() { Test*p=new Test; delete p; cout<<"n="<<Tes::tgetNum()<<endl; return 0; } 执行后的输出结果是

A.n=0

B.n=1

C.n=2

D.n=3

热搜:医患关系是一种信托关系,主要有如下哪些特征( )