下面的代码有什么问题 class A { public: A() { p=this; } ~A() { if(p!=NULL) { delete p; p=NULL; } } //p已被删除了
A* p; };
答:
会引起无限递归