摘要: class base{ public: int y; int z; int x; base():x(1){} void output() { printf("%d\n",x); printf("%p\n",(void *)this); printf("%d\n",this->x); }};class der :public base{ public: int x; der():x(2){}};int main(int argc,char **argv){ base x; de... 阅读全文
posted @ 2012-08-30 18:23 vsuu 阅读(173) 评论(0) 推荐(0) 编辑