指令“Circle(1000,1000),500,,-6,-3”将绘制()。A、画圆B、椭圆C、扇形D、圆弧
指令“Circle(1000,1000),500,,-6,-3”将绘制()。
- A、画圆
- B、椭圆
- C、扇形
- D、圆弧
相关考题:
●试题六阅读下列程序说明和C++代码,将应填入(n)处的字句写在答卷的对应栏内。【说明】①为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。②为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;C.SetRadius (5) ;C.Print();将输出:The circle has radius of 5!③完成友元函数void CompareR(Circle *c1,Circle *c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用if-else结构完成。输出结果如下:The circle has radus of 5!The circle has radius of 10!c1c2源程序文件test7_3.cpp清单如下:#includeiostream.hclass Circle{public:Circle():radius (5) {}(1)void SetRadius(int r) { radius=r; }int GetRadius() { return radius; }(2)friend void CompareR(Circle *c1,Circle *c2);private:int radius;};void CompareR(Circle *c1,Circle *c2){(3)cout"c1c2"endl;elseif ((c1-GetRadius())==(c2-GetRadius()))cout"c1=c2"endl;elseif ((c1-GetRadius())(c2-GetRadius()))cout"c1c2"endl;}void main(){Circle c1;c1.SetRadius (5) ;c1.Print();Circle c2 (10) ;c2.Print();CompareR(c1,c2);}
使用VC6打开考生文件夹下的工程test7_3,此工程包含一个源程序文件test7_3.cpp,其中含有一个类Circle的定义,但该类的定义并不完整。请按要求完成下列操作,将类Circle的定义补充完整。(1)为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。请在注释“//**1**”之后添加适当的语句。(2)为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;c.SetRadius(5);c.Print();将输出:The circle has radius of 5!请在注释“//**2**”之后添加适当的语句。(3)完成友元函数void CompareR(Circle *cl,Circle*c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用 if-else结构完成。请在注释“//**3**”之后添加适当的语句。输出结果如下;The circle has radus of 5!The circle has radius of 10!c1<c2注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。源程序文件test7_3.cpp清单如下:include<iostream.h>class Circle{public:Circle():radius(5){}//**1**void SetRadius(int r) {radius=r; }int GetRadius() {return radius; }//**2**friend void CompareR(Circle *c1,Circle*C2);private:int radius;};void CompareR(Circle *c1,Circle *C2){//**3**cout<<"c1c2"<<endl;elseif((c1->GetRadius())==(c2->GetRadius()))cout<<"c1=c2"<<endl;elseif((c1->GetRadius())<(c2->GetRadius()))cout<<"c1<c2"<<endl;}void main(){Circle c1;c1.SetRadius(5);C1.Print();Circle c2(10);c2.Print();CompareR(c1,c2);}
描述以(1000,1000)为圆心、以400为半径画1/4圆弧的语句,以下正确的是( ) 。A、Circle(1000,1000),400,0,3.1415926/2B、Circle(1000,1000),,400,0,3.1415926/2C、Circle(1000,1000),400,,0,3.1415926/2D、Circle(1000,1000),400,,0,90
()可以在窗体上绘制一个半径为1000的圆。A、Form1.Circle (1000, 1000), 1000B、Line (1000, 1000)-(2000, 2000)C、Point 1000,1000D、Pset 1000,1000
单选题A circle with center A has its center at (6, -2) and a radius of 4. Which of the following is the equation of a line tangent to the circle with center A ?Ay=3x+2By=2x+1Cy=-x+5Dy=-2Ey=-6
单选题In the figure below, a small circle, with radius x, is inside a larger circle, with radius 6. What is the area, in terms of x, of the shaded region?A6π-2πxB6π-πx2C12π-2πxD36π-2πxE36π-πx2
单选题A circle has an area of A, A second circle has a diameter four times that of the first circle. What is the area of the second circle?A2AB4AC8AD16AE32A
单选题Circles O and P intersect at exactly one point, as shown in the figure above. If the radius of circle O is 2 and the radius of circle P is 6, what is the circumference of any circle that has OP as a diameter?A4πB8πC12πD16πE64π
单选题If the ratio of the area of a sector to the area of the circle is 2:3. what is the ratio of the length of the arc in the sector to the circumference of the circle?A3/2B2/3C4/9D1/4E9/4
单选题Two circles, P and Q, lie in the same plane. If the center of circle Q lies on circle P, then in how many points could circle P and circle Q intersect?Ⅰ. 0Ⅱ. 1Ⅲ. 2AⅠ onlyBⅡ onlyCⅢ onlyDⅠ, Ⅱ and ⅢEⅡ and Ⅲ only
单选题Concerning a celestial observation,the azimuth angle is measured from the principal vertical circle to the().AGreenwich celestial meridianBhour circle of the bodyClocal celestial meridianDvertical circle of the body
单选题指令“Circle(1000,1000),500,,-6,-3”将绘制()。A画圆B椭圆C扇形D圆弧