摘要: 虚基类在说明其作用前先看一段代码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<<" 阅读全文
posted @ 2011-07-31 20:47 淡茶gis 阅读(1333) 评论(0) 推荐(1) 编辑