【单选题】#include using namespace std; class Test { public: Test() {n+=2;} ~Test() {n-=3;} static int getNum() {return n;} private: static int n; }; int Test::n=1; int main() { Test *p=new Test; delete p; cou...
【单选题】有下列程序: #include<iostream> using namespace std classTest{ public: Test() {n+=2} ~Test() {n-=3} static int getNum(){return n} private: static int n } int Test::n=1; int main() { Test*p=new Test