问题 填空题

已知下列程序的输出结果是23,请将横线处缺失的部分补充完整。
#include<iostream>
using namespace std;
class MyClass
public:
void Print()constcout<<23;
;
int main()
MyClass*p=new MyClass();
______.Print();
return 0;

答案

参考答案:(*p)

解析: 此题考查的知识点是成员函数的调用。通过对象调用成员函数使用“.”运算符,而通过对象的指针调用成员函数则使用“->”运算符。题目中,Print()函数之前已经有一个“.”,所以此处应填入一个对象,所以就把指针p转化成指针所指的对象,填入表达式(*P)。

完形填空
阅读下面短文,完成表各中所缺信息,每空一词
What if there is a fire in your house? Would you know what to do? Here are several suggestions which might help you escape (逃生) from the fire.
Leaving the house through a door should be your first choice as an escape route. Windows on a higher floor may be a safe escape route if you could get help from another person.
If you can see smoke in the house, stay low to the ground as you go to the door. In a fire, smoke and poisonous air hurt more people. You’ll breathe less smoke if you stay close to the ground.
If fire or smoke is blocking (阻塞) an escape route, you do this, firefighters (消防队员) will have difficulty finding you. The sooner they find you, the sooner you can get out.
Meanwhile, keep heat and smoke from getting through the door by blocking the cracks (缝隙) around the door with blankets, or clothing. If there is a window, open it all the way and stand in front of it. If you can get a piece of clothing, cover your mouth to keep from breathing in the smoke. This works even better if you wet the cloth first.
If your clothed catch fire during a fire, don’t run! You had better stop, drop to the ground, and roll. This will cut off the air and put out the fire.
  小题1:   to Do in a Fire
Theme
It’s important to learn how to escape from a fire.
Selecting escape routes
First    小题2:  a door leading outside. Escape through a
  小题3:  if someone could help you.
 小题4:  or smoke is blocking an escape route.
★Stay    小题5:  to the ground while you make your way out so that you will breathe in less smoke.
★Shout for help from a window that is    小题6:   or call 110.
★Don’t hide under the bed so that firefighters will be able to find you more    小题7:  .
★Make sure heat and smoke are   小题8:   from getting through the door.
★Open a window and stand in front of it.    小题9:   your mouth with a piece of clothing.
Your clothes catch fire.
Stop, drop and roll    小题10:   of running.
单项选择题