文章列表
一直不太明白c++对象销毁的过程,
代码
#include <iostream>using namespace std;class X{ public: X(){ cout << "X()" << endl; } ~X(){ cout << "~X()" << endl;
} void show(){ cout << "show()" << endl;
}};
int main(){ X *x ...