题目内容
读程序,写结果#includeusingnamespacestd;classA{public:virtualvoidf(){cout<<"A"; };};classB:publicA{public:voidf(){cout<<"B";}};classC:publicB{public:voidf(){cout<<"C";}};intmain(){A*p,a;Bb;C c;a=b;a.f();a=c;a.f();p=&b;p->f();p=&c;p->f();return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题