摘要:
#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) 阅读全文