重载 class A的new/delete 以及 new[]/delete[]运算符: 成功返回非空指针,失败返回空指针 #include #include using namespace std; class A { public: A (int var = 0) : m_var (var) { cout << A构造: << this << endl; } ~A (void) { cout << A析构: << this << endl; } static void* operator new (si