3/2
2/3
4/9
1/4
9/4
第1题:
描述以(1000,1000)为圆心、以400为半径画1/4圆弧的语句,以下正确的是( ) 。
A、Circle(1000,1000),400,0,3.1415926/2
B、Circle(1000,1000),,400,0,3.1415926/2
C、Circle(1000,1000),400,,0,3.1415926/2
D、Circle(1000,1000),400,,0,90
第2题:
使用VC6打开考生文什夹下的工程test1_3。此工程包含一个test1_3.cpp,其中定义了类circle和column,其中column类由circle类protected派生,但两个类的定义并不完整。请按要求完成下列操作,将程序补充完整。
(1)定义类circle的保护数据成员r和area,它们都是double型的数据。请在注释“//**1**”之后添加适当的语句。
(2)添加类circle的无参数的构造函数,使circle对象的r默认值为0,请在汁释“//**2**”之后添加适当的语句。
(3)添加派生类column构造函数的定义,传入的参数为double型的height和radius,并将具分别赋值给数擗成员h和基类的r,请在注释“//**3**”之后添加适当的语句。
(4)完成派生类column的成员函数print的定义,使其以格式“r=_area=_”先输出半径r和底面积area,再以格式“h=_vol=_”输出高h和体积vol的值,请在注释“//**4**”之后添加适当的语句。
输山结果如下:
r=1 area=3.1416
h=2 vo1=6.2832
注意:除在指定的位置添加语句外,请不要改动程序中的其他语句。
源程序文件test1_3.cpp清单如下:
include<iostream.h>
const double pi=3.1416;
class circle
{
protected:
//**1**
public:
//**2**
circle(double radius){ r=radius;}
void print()
{
area=r*r*pi;
cout<<"r="<<r<<" "<<"area="<<ared<<endl;
}
};
class column: protected circle
{
protected:
double h;
public:
//** 3 **
void print()
{
// ** 4 **
}
};
void main()
{
column col(1.0,2.0);
Col.print();
}
第3题:
第二主枝长度是第一主枝的()。
第4题:
Which two LSA types can be used to aggregate inter-area routes?()
第5题:
可以预防的癌症有()
第6题:
Geographical positions outlining the area of the sector
True bearings as observed from the ship toward the light
An outline of the area of the sector
True bearings as observed from the light toward the ship
第7题:
6π-2πx
6π-πx2
12π-2πx
36π-2πx
36π-πx2
第8题:
5:8
3:4
3:5
2:3
1:3
第9题:
第10题:
2A
4A
8A
16A
32A
第11题:
3/2
2/3
4/9
1/4
9/4
第12题:
1:9
3:1
9:1
27:1
81:1
第13题:
阅读以下说明和C++代码,填入(n)处。
[说明]
以下C++代码使用虚函数实现了同一基类shape派生出来的Class rectangle、Class triangle、Class circle实现了计算矩形、圆形面积的计算。仔细阅读以下代码,将(n)处语句补充完整。
[代码5-1]
include<iostream.h>
define PI 3.14159
class shape {//基类
protected:
(1);
public:
(2);
(3);
};
[代码5-2]
class rectangle: public shape {
public:
rectangle (int x2,int y2,int r2): (4) {};
double area ( ) {return x*y; };
};
class circle: public shape {
public:
circle (int x3,int y3,int r3):(5){};
double area ( ) {return r*r*PI; };
};
[代码5-3]
void main ( )
{
rectangle r (10,20,0);
circle c (0,0,30);
shape (6);
cout<<"长方形面积="<<s1->area ( ) <<endl;
cout<<"圆形面积="<<s2->area ( ) <<endl;
}
[运行结果]
长方形面积=200
圆形面积=2827.43
第14题:
A、2
B、4
C、3
D、1
第15题:
What is the decimal equivalent of 00000100?()
第16题:
女性肌力约为同龄男性的()
第17题:
4
8
12
16
18
第18题:
第19题:
第20题:
1 to 3
1 to 6
2 to 9
3to10
4 to 5
第21题:
y=3x+2
y=2x+1
y=-x+5
y=-2
y=-6
第22题:
4π
8π
12π
16π
64π
第23题:
20
25
30
40
45
第24题:
3:4
4:3
3:5
5:3
2:3