问题 单项选择题

下列是模板声明的开始部分,其中正确的是【 】

A.template<T>

B.template<class T1,T2>

C.template<class T1,class T2>

D.template<class T1;class T2>

答案

参考答案:C

解析:本题考核模板的声明。模板声明的开始部分为:template<类型形参表>。其中,<类型形参表>可以包含基本数据类型,也可以包含类类型。类型形参需要加前缀class。如果类型形参多于一个,则每个类型形参都要使用class。形参表中的参数是惟一的,而且至少在函数定义体中出现厂次。形参表中至少有一个形参的类型必须用<类型形参表>中的形参来定义。所以只有C选项的声明是正确的。

阅读理解

Many of us don’t pay attention to the importance of eye care. It’s said that if you take care of your body, then you can be healthy. That is why our eyes should be given a lot of care. Natural eye care should be put in a number one place.

There are several causes leading to poor eyesight like not enough food, gene(基因) and aging(年龄增长). Televisions, computers and reading are also the causes of having poor eyesight.

If you happen to work in front of the computer, it is best to take a rest every once in a while. Something dirty can cause redness and they will make you feel uncomfortable. It is bad for your eyes, too. If this happens, the best way is to clean your eyes by using cold water. You must also try your best to protect your eyes from harmful thing. For example, sunglasses are not just fashion but they can also serve as a great way to protect your eyesight from UV rays.

Eating healthy foods will do good to your eyesight. Remember that vitamins(维生素) A、C and E are good for eyes. Try to eat food groups that have these vitamins. And you should do eye exercises because exercise protects your eyesight, too. If a person exercises regularly(规律地) and eats the right kind of food, his eyes will stay in good condition for a long time.

All above are natural ways of eye care that help us keep healthy eyes. Being happy all the time can be helpful to a person’s eyesight, too. In a word, eye care is very important, no matter how old a person is.

小题1: __________ is the most important way to protect our eyes.

A.Natural eye care

B.Taking medicine

C.Seeing the doctor

D.Being happy all the time小题2:All the following causes can lead to bad eyesight except _________.

A.age

B.height

C.reading

D.computer小题3: What should you do if you have to work in front of the computer?

A.Eat healthy foods.

B.Clean the eyes by using cold water.

C.Wear a pair of sunglasses.

D.Have a rest after working for a while.小题4: What do the under words “UV rays” mean?

A.沙土

B.闪电

C.紫外线

D.超声波小题5:Which is the best title of the passage?

A.Ways of Eye Care

B.Ways of Eye Exercises

C.Way of Being be Happy

D.Way of Being Healthy

单项选择题