A band or collar on the top end of a boom to which the topping lift,midships guy,and outboard guys are secured,is called the ______.
A.collar band
B.guy band
C.pad eye collar
D.spider band
第1题:
下面程序是一个堆栈的类模板,在横线处填上适当语句,完成类模板的定义。
define MAXSIZE 100
template <class T>
class Stack
{
T s[MAXSIZE];
int top;
public:
stack()
{
top=1;
}
void push(T newValue)
{
if(top<MAXSIZE)
{
top=top+1;
s[top]=newValue;
}
else
cout<<"堆栈满,无法进栈"<<end1;
}
void pop();
};
【 】
{
if(top>1)
{
cout<<s[top]<<end1;
top=top-1;
}
else
cout<<"堆栈空! "<<end1;
}
第2题:
A.Band38为主频段,无辅频段
B.Band41为主频段,无辅频段
C.Band38为主频段,Band41为辅频段
D.Band41为主频段,Band38为辅频段
第3题:
第4题:
请判断下列代码在程序关闭时,正确的对象释放顺序
TMybutton=class(Tbutton)
Protected
Destructor Destroy;override;
End;
…………
destructor TMyButton.Destroy;
Begin
inherited;
Application.MessageBox(PChar(Name),’Destroy’,mb_ok);
end;
var AButton,BButton:TMyButton;
procedure TForm1.FormCreate(Sender:TObject);
begin
Abutton:=TmyButton.Create(Nil);
With AButton do
begin
Parent:=form1;
Top:=100;
Left:=100;
Visible:=True;
Name:=’ABtn’;
end;
BButton:=TMyButton.Create(Application);
With BButton do
begin
Parent:=Form1;
Top:=100;
Left:=200;
Visible:=True;
Name:=’BBtn’;
end;
procedure TForm1.FormDestroy(Sender:TObject);
begin
…………
end;
A.BButton.Destroy->Form1.Destroy->AButton.Destroy
B.上述都不对,应该手工调用 Abutton.free,否则会造成AButton没有释放的
错误
C.Form1.Destroy->AButton.Destroy->BButton.Destroy
D.AButton.Destroy->Form1.Destroy->BButton.Destroy
第5题:
Which tanker discharge pattern would be the safest and most efficient ________.
A.Empty the forward tanks and start working aft,emptying each tank in sequence
B.Start discharging with most of the discharge coming from forward,but include some from midships and after tanks
C.Start pumping from forward,midships,and aft with the discharge distributed equally among the tanks
D.Start pumping from midships and then work forward and aft simultaneously as the midships tank is emptied
第6题: