摘要: 1 #include 2 using namespace std; 3 class A 4 { 5 public: 6 void sayHi(){ 7 coutsayHi(); 14 p = NULL; 15 p->sayHi(); 16 } 以上输出:(因为A::sayHi()并未使用this指针。因此尽管this指针是NULL,只要不... 阅读全文
posted @ 2013-11-07 12:38 dorothychai 阅读(341) 评论(0) 推荐(0) 编辑