问题 单项选择题

若执行语句:cout<<setfill('*')<<setw(10)<<123<<"OK"<<end1后将输出

A.*******123OK

B.123********OK

C.*******123********OK

D.123*******OK********

答案

参考答案:A

解析: 本题考核格式控制数据的输入输出。函数setfill(char c) 用于设置填充字符,在输出数据时,如果数据宽度小于设置的宽度,则空闲位置要用填充字符填满。函数setw(int n)用于设置输入输出宽度,宽度设置的效果只对一次输入或输出有效,在完成一次数据的输出或输入后,宽度设置自动恢复为0,例如题中语句以宽度10输出数据“123”后,字符串“OK”的输出宽度就自动恢复为0了。而且输出的初始状态为右对齐,所以最终的输出为*******123OK。

阅读理解
阅读理解。
Dear Editor,
    I'm an overweight (超重的) girl. People always make fun of me. At school, I don't spend much time with
other students and don't like to join in activities that I enjoy because I'm afraid people might laugh at me.
What should I do? Please tell me.
                                                                                                                                                Lily

Dear Lily,
    ②No matter what you weigh, you should be treated with kindness. People who make fun of you are
making a mistake. They should accept you for who you are.
     My advice for you is to pay no attention to your classmates' comments and all the rude things they may
say about you.③Don't let them upset you, or you will have a bad time all day.
     At the same time, you shouldn't ④distance yourself from them. Instead, find someone you trust (信任)
and develop a friendship with him or her. Then you'll feel happier and safer. And don't be afraid to take part
in any activities you like. Remember: ⑤People are more interested in your behavior than your weight.
     If you feel that your weight is really becoming a problem, then you can start doing things that ⑥                                 (让你感觉好一些) about yourself. You could take up exercise such as running,
swimming or jumping rope. Also, you could eat less junk food but something healthier.
                                                                                                                                                Editor
1. (A)用一个适当的英语单词替代文中②处划线部分No matter what:                  .
    (B)猜猜文中④处划线部分distance的汉语意思:                   .
2. 将文中⑤处的划线部分翻译成汉语:                                             .
3. 根据文中⑥处的汉语提示,用英语将句子补充完整:                                                   .
4. 将文中①处划线部分合并成一句: Please tell me                                                   .
5. 写出文中③处划线部分的同义句:                                                 .
默写题