网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Double full astern.()
- A、全速后退
- B、再后退三
- C、半速后退
- D、后退三
参考答案
更多 “Double full astern.()A、全速后退B、再后退三C、半速后退D、后退三” 相关考题
考题
若程序中定义了以下函数:double myadd(double a,double b){ return(a+b);}并将其放在调用语句之后,则在调用之前应该对该函数进行说明,以下选项中错误的说明是( )。A.double myadd(double a, b)B.double myadd(double ,double )C.double myadd(double b,double a)D.double myadd(double x,double y)
考题
编写求两个双精度数之和的函数,选项中正确的是A.double add(double a,double b){double s;s=a+b;return s; }B.double add(double a,b){double s;s=a+b;return (s);}C.double add(double a double b){double s;s=a+b;returns;}D.double add(a,b){double a,b,s;s=a+b;return (s);}
考题
●试题五阅读下列程序说明和C++代码,将应填入(n)处的字句写在答卷的对应栏内。【说明】①在类体中添加函数move(double ax, double ay)的定义,使得点的坐标x和y分别移动ax和ay个单位。②在类定义外完成重载的两个构造函数CPosition()和CPosition(double dx, double dy),其中前者为不带参数的构造函数,使CPosition对象的默认值为x=0,y=0,后者为带参数的构造函数,把数据成员x和y分别初始化为参数dx和dy的值。③完成函数double distance(double bx, double by)的定义,该函数返回*this和点(bx,by)的距离。注意:除在指定的位置添加语句外,请不要改动程序中的其他语句。源程序文件test5.cpp清单如下:#includeiostream.h#include math.hclass CPosition{public:CPosition();CPosition(double dx, double dy);double getx();double gety();(1)double distance(double bx, double by);private:double x;double y;};(2){x=0; y=0;}CPosition::CPosition(double dx, double dy){x=dx; y=dy;}double CPosition::getx(){return x;}double CPosition::gety(){return y;}double CPosition::distance(double bx, double by){(3)}void main(){double a,b;cout "Input x, y position of a point: ";cin a b;CPosition psA(a, b);cout "Input x, y position of another point: ";cin a b;cout "The distance is " psA.distance(a,b) endl;}
考题
My ship’s engine responds well to telegraph orders and takes about 80 seconds to reverse from full speed ahead to full speed astern. This sentence ______.A.indicates the engine’s particularsB.tells the engine’s functionC.shows the engine’s typeD.refers to the engine’s information
考题
下列程序的执行结果为【 】。include class Point{public:Point(double i, double j)
下列程序的执行结果为【 】。include <iostream. h>class Point{public:Point(double i, double j) { x=i; y=j;}double Area() const { return 0.0;}private:double x, y;};class Rectangle: public Point{public:Rectangle(double i, double j, double k, double 1)double Area() const {return w * h;}private:double w, h;};Rectangle: :Rectangle(double i, double j, double k. double 1): Point(i,j).{w=k, h=1}void fun(Point s){cout<<s. Area()<<end1;}void main( ){Rectangle rec(3.0, 5.2, 15.0. 25.0);fun(rec)}
考题
有以下程序:includeincludeusing namespace std; class point{private:double
有以下程序: #include<iostream> #include<math> using namespace std; class point { private: double x; double y; public: point(double a,double B) { x=a; y=b; } friend double distance (point a,point B) ;A.1B.5C.4D.6
考题
以下程序的主函数中调用了在其面前定义的fun函数 #includestdio.h . . . main( ) {double a[15],k; k=fun(a); . . .} 则以下选项中错误的fun函数首部是( )。 、A.double fun(double a[l5])B.double fun(double *a) 。C.double fun(double a[])D.double fun(double a)
考题
以下程序的主函数中调用了在其前面定义的fun函数#includestdio.hmain(){ double a[15],k;k=fun(a);...}则以下选项中错误的fun函数首部是A.double fun(double a[15])B.double fun(double *a)C.double fun(double a[])D.double fun(double a)
考题
在同一可访问区内有如下8个函数:①double calculate(double x)②double calculate(double x, double y);③double calculate(double x. int y);④double calculate(int x, double y);⑤double calculate(int x);⑥float calculate(float x);⑦float calculate(double x);⑧float calculate(int x,double y)。那么关于函数重载的说法中,不正确的是(63)。A.②③④⑤中任两个函数均构成重载B.①③构成重载C.②⑧肯定构成重载,⑥⑦也肯定构成重载D.④⑧构成重载
考题
The helm command SHIFT YOUR RUDDER means ______.A.Check the swing of the vesselB.Double your rudder angle or go to full rudderC.Bring your rudder amidshipsD.Change from right rudder to left rudder,or vice versa,an equal number of degrees
考题
What would you say to the hotel receptionist to get a double room?__________
A.Rent us a double room.
B.Book us a double room.
C.We'd like to have a double room.
D.Let's have a double room.
考题
已知一个函数的定义如下:double fun(int x,double y){⋯⋯}则该函数正确的函数原型声明为()A、double fun(intx,doubley)B、fun(int x,doubley)C、double fun(int,double);D、fun(x,y);
考题
Given the following output what course of action should be undertaken for a long term solution()A、Implement regular monitoring to avoid full filesystemsB、Double the size of /usrC、Reduce the size of /home to balance the filesystemsD、Add another disk allow for growth.
考题
紧急后退三。()A、Full astern!B、Double full astern!C、Emergency full astern!D、Emergency three astern!
考题
若程序中定义了以下函数 double myadd(double a,double b) { return(a+b); } 并将其放在调用语句之后,则在调用之前应该对该函数进行说明,以下选项中错误的说明是()A、double myadd(double a,b);B、double myadd(double,double);C、double myadd(double b,double a);D、double myadd(double x,double y);
考题
单选题若程序中定义了以下函数 double myadd(double a,double b) { return(a+b); } 并将其放在调用语句之后,则在调用之前应该对该函数进行说明,以下选项中错误的说明是()A
double myadd(double a,b);B
double myadd(double,double);C
double myadd(double b,double a);D
double myadd(double x,double y);
考题
单选题What would you say to the hotel receptionist to get a double room?A
Rent us a double room.B
Book us a double room.C
We'd like to have a double room.D
Let 's have a double room.
考题
单选题A towing vessel becomes tripped while towing on a hawser astern. What factor is MOST important when assessing the risk of capsizing? ()A
Length of the towlineB
Height of the towline connectionC
Longitudinal position of the towline connectionD
Direction of opposing force
考题
单选题A vessel would be referred to as tender when the weight of the cargo is().A
evenly distributed vertically and the double bottoms are fullB
concentrated low and the double bottoms are emptyC
concentrated low and the double bottoms are fullD
concentrated high and the double bottoms are empty
考题
单选题A vessel is tender if cargo weight is().A
concentrated high and the double bottoms emptyB
concentrated low and the double bottoms emptyC
evenly distributed vertically with the double bottoms fullD
concentrated and with the double bottoms full
考题
单选题My ship’s engine responds well to telegraph orders and takes about 80 seconds to reverse from full speed ahead to full speed astern. This sentence().A
indicates the engine's particularsB
tells the engine's functionC
shows the engine's typeD
refers to the engine's information
考题
单选题以下正确的重载函数是()A
int same(int,double);double same(int,double);B
int same1(int,double);int same2(int,double);C
int same(int=0);int same(int);D
int same(int,double);int same(int,double,double);
热门标签
最新试卷