The decorator suggested that he ( )up a screen on the window to let-in-fresh air and k
The decorator suggested that he ()up a screen on the window to let-in-fresh air and keep out files.
A、fix
B、fixed
C、fixes
D、fixing
The decorator suggested that he ()up a screen on the window to let-in-fresh air and keep out files.
A、fix
B、fixed
C、fixes
D、fixing
The chairman (proposed) that we stop the meeting.
A. stated
B. announced
C. demanded
D. suggested
–Hve you got redy for your studying pln --Yes! I hve mde it ______. Plese give me some sugges–Hve you got redy for your studying pln --Yes! I hve mde it ______. Plese give me some suggestionsnd then I will mke some chnges.cutiously B.privtely C.roughly D.dedly
A.cautiously
B.privately
C.roughly
D.deadly
A.比静态继承更灵活
B. 避免在层次结构高层的类有太多的特征
C. 有许多小对象,很容易对它们进行定制,但是很难学习这些系统,排错也很困难
D. Decorator与它的Component不一样,Decorator是一个透明的包装
What will probably happen in December?
A.The store will open.
B.The decorator will finish his project.
C.The store will have a sale.
D.The party will take place.
A.Facade(外观)
B.Singleton(单件)
C.Participant(参与者)
D.Decorator(装饰)
What is the problem?
A.The interior decoration appears behind schedule.
B.The decorator quit.
C.The project has been cancelled.
D.The ceremony has been rescheduled.
A.cheerfully
B.light-heartedly
C.brightly
D.lightly
M The decorator has been finishing up another project while he gets started on yours.
W Well, the grand opening is scheduled for December 11. I've planned to have a big ceremony and grand opening event.
M Don't worry, once the decorator finishes the other job, he'll be spending all of his time getting your store ready.
Who is the woman?
A.An interior designer
B.A store owner
C.A party planner
D.A project manager
阅读以下说明和C++程序代码,将应填入(n)处的字句写在答题纸的对应栏内。
【说明】
在下面的C++代码中,类SalesTicket能够完成打印票据正文的功能,类HeadDec- orator与FootDecorator分别能够完成打印票据的台头和脚注的功能。
已知该程序运行后的输出结果如下所示,请填补该程序代码中的空缺。
这是票据的台头!
这是票据正文!
这是票据的脚注!
---------------
这是票据的台头!
这是票据的脚注!
【C++程序代码】
#include
using namespace std;
class SalesTicket {
public:
(1) printTicket() { cout << " 是票据正文!" << endl;}
class Decorator : public SalesTicket{
SalesTicket *ticket;
public:
Decorator(SalesTicket *t){ ticket = t; }
void printTicket(){
if(ticket != NULL)
ticket->printTicket();
}
};
class HeadDecorator : public Decorator{
public:
HeadDecorator(SalesTicket *t): (2) { }
void printTicket() {
sour << "这是票据的台头!" << endl;
Decorator::printTicket();
}
};
class FootDecorator :public Decorator{
public:
FootDecorator(SalesTicket *t): (3)
void printTicket() {
Decorator::printTicket();
cout << "这是票据的脚注!" << endl;
}
};
void main(void) {
SalesTicket t;
FootDecorator f(&t);
HeadDecorator h((4) );
h.printTicket();
cout << "-------------------------"<< endl;
FootDecorator a(NULL);
HeadDecorator b((5) );
b.printTicket();
}
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!