2011年4月20日
摘要: #include <iostream>using namespace std;class a{public: a(int x=0){this->x=x;} virtual void show(){} int x;};class b {public: b(int y=0){this->y=y;} void show(){} int y;};class c:public a,public b{public: c(int x,int y,int z):a(x),b(y),z(z){} void show(){} int z;};int main(){ c cc(1,2,3) 阅读全文
posted @ 2011-04-20 10:35 wf110 阅读(117) 评论(0) 推荐(0) 编辑