摘要: 假设有这样的类 1 class Base 2 { 3 public: 4 Base() 5 { 6 clear(); 7 } 8 virtual ~Base() 9 {10 int a = 0;11 }12 virtual void fun()13 {14 cout << "base" << endl;15 }16 void clear()17 {18 memset(this,0,sizeof Base);19 }20 int ... 阅读全文
posted @ 2012-11-13 10:27 可乐爱上了雪碧 阅读(367) 评论(0) 推荐(0) 编辑