摘要:
虚基类在说明其作用前先看一段代码class A{public:int iValue;};class B:public A{public:void bPrintf(){cout<<"This is class B"<<endl;};};class C:public A{public:void cPrintf(){cout<<"This is class C"<<endl;};};class D:public B,public C{public:void dPrintf(){cout<<" 阅读全文