#define _CRT_SECURE_NO_WARNINGS#include<iostream>usingnamespace std;classA{
public:int _a;};// class B : public AclassB:public A
{
public:int _b;};// class C : public AclassC
多重继承有如下的多重继承模式例子:#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;class A{public: int _a;};// class B : public Aclass B : public A{public: int _b;};// class C : public Aclass C : public A{public: int _c;};cl