问题 单项选择题

当使用fstram流类定义一个流对象并打开一个磁盘文件时,文件的隐含打开方式为

A.ios::in

B.ios::out

C.ios::int | ios::out

D.没有

答案

参考答案:D

解析: C++中没在规定文件打开时的隐含打开方式,因此考生在写程序是必须指定打开方式,否则将出现错误。

句型转换

改写句子。

1. Being ill, he didn't come to Mary's birthday party. (改为含有状语从句的复合句)

    ___________________________, he didn't come to Mary's birthday party.

2. The bridge which was built in 1888 is now under repairs. (改为简单句)

    ___________________________ is now under repairs.

3. He is said to have passed the driving test. (改为含有主语从句的复合句)

    ___________________________ he has passed the driving test.

4. Although he is still poor, he has already grasped two foreign languages. (改为倒装句)

    ___________________________, he has already grasped two foreign languages.

5. He didn't go to school until he was ten years old. (改为强调句)

    ____________________________________________ he went to school.

6. I saw several houses with mosaic floor and wall paintings. (画线部分改写成定语从句)

    ____________________________________________

7. With the help of the kind old man, we arrived at the remote village before lunchtime. (用with复合结构做).

    ___________________________, we arrived at the remote village before lunchtime.

8. "Please don't open the window." said Jack politely to his classmate.

    Jack asked his classmate politely _________________________ (间接引语).

9. Time permitting, we can have a walk around the playground after supper. (画线部分改写成状语从句)

    ___________________________, we can have a walk around the playground after supper.

10. When we see from the hilltop, we can find the city more beautiful. (画线部分改写成分词作状语)

     ___________________________, we can find the city more beautiful.

填空题