问题 单项选择题

在重载一个运算符为成员函数时,其参数表中没有任何参数,这说明该运算符是

A.后缀一元运算符

B.前缀一元运算符

C.无操作数的运算符

D.二元运算符

答案

参考答案:B

解析: 在成员函数重载中,一元函数重载在函数声明中可以没有任何形参,操作数就是对象本身;但是作为后缀运算符重载时,则必须在形参中添加参数。

阅读理解

[1] Hello. It’s one of the first words we learn as babies, yet it’s one of the last ones we think to use as adults. That’s unfortunate, because saying hello is more than just saying hello—it is recognition of another’s worth. How might the world change—how might we change—if we mastered this word? To find out, I spent one month saying hello to every person I met. Here’s what I’ve learned.   

[2] It can boost (促进) productivity. In one of the few studies ever done on this subject, Allan Allday, an assistant professor of special education at Oklahoma State University, had middle school teachers greet their students individually each morning. This exchange of greetings raised the kids’ productivity. School went from impersonal to personal, and that resulted in more class participation and better grades.  

[3] Environments influence friendliness, One study found that people in the city were kiss likely to one hands with a stranger than those in the countryside. And researchers say, pleasure environments generally encourage more smiles and hellos than unpleasant ones. My experience was similarly. Whatever the reason, my urban hellos were answered far less often than my rural one. Similarly, people in vacation spots, like the Jersey Shore, were far friendlier than those hurrying work downtown.  

[4] It’s a form of universal health insurance. It’s impossible to say hello without smiling. And smiling has been shown to lower blood pressure, relieve stress and boost happiness. Apparently, a smile creates a similar effect in the recipient (接受者)。

[5] So maybe we can make the world a better place by____________. After a month of doing it. I feel lighter and more connected and I have a better sense of well-being.  

76. What does the author say about the adults according to Paragraph 1? (within 8 words) 

________________________________________________________________________

77. Which sentence in the text is the closest in meaning to the following one?  

Teachers and students got friendlier so that the students became more active in learning and scored higher in tests.  

________________________________________________________________________

78. Fill in the blank in Paragraph 5 with proper words. (within 5 words) 

79. List three effects of smiling on health according to the text. (within 8 words) 

①                         ②                     ③ 

80. Translate the underlined sentence in Paragraph 3 Chinese.   

单项选择题