摘要:
A():1B()1View Code 1 #include <iostream> 2 3 using namespace std; 4 class A 5 { 6 protected: 7 static int count ; 8 int num ; 9 public:10 A()11 {12 count++;13 num = count;14 cout<<"A():"<<num<<endl;15 }16 virtual ~A()17 {18 cout<<"~A():"<... 阅读全文