问题
填空题
表达式x. operator+(y. operator++(0) ) 还可以写成 。
答案
参考答案:x+y++或x+(y++)
解析: 因为卜operator++(0) 是对成员y重载运算符,所以是成员重载,在参数表中又有一个参数,是重载后缀++,即x+(y++) 。
表达式x. operator+(y. operator++(0) ) 还可以写成 。
参考答案:x+y++或x+(y++)
解析: 因为卜operator++(0) 是对成员y重载运算符,所以是成员重载,在参数表中又有一个参数,是重载后缀++,即x+(y++) 。
根据对话内容,选择正确的选项,两项多余。 | |
Doctor: What's the matter with you, Cindy? Cindy: 1.________ Doctor: When did it start? Cindy: 2.________ Doctor: Please lie down on the bed and I'll examine you. Cindy: Yes, doctor. Doctor: Well, there's nothing serious with you. 3.________ Cindy: No, doctor. I'm busy and I hardly have much time for exercise. I only exercise on Sunday. Doctor: How do you sleep? Cindy: Very badly, doctor. 4.________ Doctor: No. You don't need medicine. Just take more exercise. Cindy: You are right, doctor. I should exercise to keep healthy. 5.________ Doctor: You're welcome. I hope you will feel better soon. | |
|