If anything abnormal be found on the load change of main engine when the ship is entering in shallow waterway, before taking measures the engineer on duty should _______.
A.stop main engine immediately
B.ask the captain and the chief engineer's permission for stopping the engine
C.inquire the bridge for the situation initiatively
D.stop engine and inform bridge
第1题:
使用VC6打开考生文件夹下的工程proj2。此工程包含一个源程序文件main2.cpp,但该程序运行有问题。请改正main函数中的错误。
源程序文件main2.cpp清单如下:
//main2.cpp
include <iostream>
using namespace std;
class MyClass
{
public:
MyClass(int m)
{
member=m;
}
~MyClass() {}
int GetMember()
{
return member;
}
private:
int member;
};
MyClass MakeObject(int m)
{
MyClass *pMyClass=new MyClass(m);
return *pMyClass;
}
int main ( )
{
int x=7;
/************found**************/
MyClass *myObj=MakeObject(x);
/*************found*************/
cout<<"My object has member"<<myObj.GetMember()<<end1;
return 0;
}
第2题:
A.train
B.bus
C.car
D.ship
第3题:
In relation to cargo gear, what does SWL mean ?______.
A.Safe working load
B.Ship’s working lift
C.Starboard wing lift
D.Stress, weight, load
第4题:
下列给定程序中,函数fun()的功能是:计算整数n的阶乘。
请改正程序中的错误,使它能得出正确的结果。
注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。
试题程序:
include <stdio.h>
double fun(int n)
{
double result=l.0;
whil (n>l&&n<170)
/**************found********************/
result*=--n;
/**************found********************/
return;
main()
{int. n;
clrscr();
printf("Enter an integer: ");
scanf("%d",&n);
printf("\n\n%d!=%lg\n\n ",n, fun(n));
}
第5题:
A vessel in distress should send by radio telephone the two tone alarm signal followed immediately by the ______.
A.distress position
B.spoken words “Mayday, Mayday, Mayday”
C.ship’s name
D.ship’s call letters
第6题: