纠错
全专业资料、题库、学位、网课
最高直省2344元
上千+科次精品网课
买网课即送全真模考题库
五千+科次教材资料
电子资料满三件9折
五千+科次在线题库
全真呈现历年考试试题
1、[单选题]已知:类A中一个成员函数说明如下:voidSet(Aa);其中,Aa的含义是
2、[主观题]写出下面程序的输出结果。#includeclasslocation{intX,Y;public:voidinit(int=0,int=0);voidvalueX(intval){X=val;}intvalueX{returnX;}voidvalueY(intval){Y=val;}intvalueY{returnY;}};voidLocation::init(intinitX,intinitY){X=initX;Y=initY;}voidmain{LocationA,B;A.init;cout
3、[主观题]面向对象程序设计的___机制提供了重复利用程序资源的一种途径。
4、[主观题]模板分为___和___,它们分别允许用户构造___和___。
5、[主观题]在下面程序中的横线处填上适当内容,使程序完整。#includeclassvehicle{protected:intsize;intspeed;public:voidsetSpeed(ints){speed=s;}①___getSpeedLevel{returnspeed/10;}};classcar:pubicvehicle{public:intgetSpeedLeve{returnspeed/5;}};classtruck:publicvehicle{public:intgetSpeedLevel{returnspeed/15;}};intmaxSpeedLevel(vehicle②___,vehicle③___){if(v1.getSpeedLevel>v2.getSpeedLevel)return1;elsereturn2;}voidmain{truckt;carc;t.setSpeed;c.setSpeed;cout
Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.
温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。