分析下列程序段,写出运行结果。#includeclassA{private:inta;public:voidsetA(int);voidsetA;};classB{private:intb;public:voidsetB(int);voidshowB;};classC:publicA,privateB{private:intc;public:voidsetC(int,int);voidshowC;};voidA::setA(intx){a=x;}voidA::showA{cout<<″a=″<
收藏
反馈