现实的营养状况
长期营养状况
现实和长期的营养状况
体型
第1题:
下列选项成员变量声明正确的是
A.public protected final int i;
B.abstract class F1{…}
C.private double height;
D.double weight{}
第2题:
下列选项成员变量声明正确的是( )。
A.public protected final int i;
B.abstract class Fl{…}
C.private double height;
D.double weight
第3题:
用于选拔性和竞赛性活动的评价属于().
A.相对评价
B.绝对评价
C.个体内差异评价
D.形成性评价
第4题:
第5题:
第6题:
下列成员变量声明中,正确的是______。
A.public protected final int i;
B.abstract class F1{…}
C.private double height;
D.double weight
第7题:
第8题:
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,其中定义了vehiele类,并派生出motorcar类和bicycle类。然后以motorcar和bicycle作为基类,再派生出motorcycle类。要求将Vehicle作为虚基类,避免二义性问题。请在程序中的横线处填写适当的代码并删除横线,以实现上述类定义。此程序的正确输出结果应为:
80
150
100
1
注意:只能在横线处填写适当的代码,不要改动程序中的其他内容,也不要删除或移动“//****found****”。
include<iostream.h>
class vehicle
{
private:
int MaxSpeed;
int Weight;
public:
//*************found************
vehicle(int maxspeed,int weight):——
~vehicle{};
int getMaxSpeed{return MaxSpeed;}
int getWeight{retum Weight;}
};
//****************found************
class bicycle:——public vehicle
{
private:
int Height;
public:
bicycle(int maxspeed,int weight,int height):vehicle(maxspeed,weight),Height(height){}
int getHeight{retum Height;};
};
//*******************found**************
class motorcar:——public vehicle
{
private:
int SeatNum;
public:
motorcar(int maxspeed。int weight,int seatnum):vehicle(maxspeed,weight),SeatNum(seatnum){}
int getSeatNum{return SeatNum;};
};
//*****************found***************
class motorcycle:——
{
public:
motorcycle(int maxspeed,int weight,int height):vehicle(maxspeed,weight),bicycle(maxspeed,weight,
height),motorcar(maxspeed,weight,1){}
};
void main
{
motorcycle a(80,150,100);
cout<<a.getMaxSpeed<<endl;
cout<<a.getWeight<<endl;
cout<<a.getHeight<<endl;
cout<<a.getSeatNum<<endl;
}
(1)MaxSpeed(maxspeed),Weight(weight){f;
(2)virtual
(3)virtua1
(4)public bicycle,public motorcar
第9题:
第10题: