![]() |
#2
newyj2008-11-28 23:18
|
//下面的代码有什么问题,为什么,请说明原因
class A
{
public:
A() { p=this; }
~A()
{
if(p!=NULL)
{
delete p; p=NULL;
}
}
A* p;
};