摘要: 今天突然想到基类子类含有同名变量的时候,编译器是怎么区分谁是谁的呢,于是写了段代码测了下. 1 #include "stdio.h" 2 3 class Base 4 { 5 public: 6 Base():m(1) 7 { 8 9 }10 public:11 ... 阅读全文
posted @ 2014-07-30 15:41 core! 阅读(245) 评论(0) 推荐(0) 编辑