摘要:
http://blog.csdn.net/hairetz/article/details/4153252 先看这样一段代码class test{public:test(int i){ m_i=i;}test(){};void hello(){printf("hello/n");}private:int m_i;};int main(){test *p=new test();p->hello();p=NULL;p->hello();}结果是:hellohello为何p=NULL;p->hello(); 这样之后,NULL->hello()也依然有效呢? 阅读全文