自考题库入口
问答题
分析下列程序段,写出运行结果。#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=″<
收藏

答案

解析

加载中...