问题
单项选择题
下列不能作为类的成员的是
A.自身类对象的指针
B.自身类对象
C.数组
D.另一个类的对象
答案
参考答案:B
解析: 类的数据成员可以是任意类型,包括整型,浮点型、字符型、数组、指针和引用,也可以是类自身的指针,另一个类的对象,但不能是类自身的对象,故B项是错误的。
下列不能作为类的成员的是
A.自身类对象的指针
B.自身类对象
C.数组
D.另一个类的对象
参考答案:B
解析: 类的数据成员可以是任意类型,包括整型,浮点型、字符型、数组、指针和引用,也可以是类自身的指针,另一个类的对象,但不能是类自身的对象,故B项是错误的。
阅读理解 |
Hello, listeners. Welcome to Henton Hospital Radio. Before our music program begins, I'm going to repeat (重复) some of our hospital rules. The hospital can sleep 800 patients (病人). There are 8 beds in each ward (病房). The visiting hours are in the afternoon from 2:30 to 3:30 and in the evening from 7:00 to 8:00. But remember only two people can see you at the same time. Sorry about that, but you can see what would happen if we didn't have these rules. The other rules are about our hours. We start quite early-you might not be used to that. We wake you at 6:00, and breakfast is at 8:00, lunch at noon. There's tea at 3:30 and supper is at 6:00. You can see the smoking sign-we don't allow smoking in the wards. I'm sure you understand why. However, if you do need to smoke, there are some smoking-rooms where it is allowed. You will find the radio switch (开关) on the wall near your bed, with your own headphone, if you want to listen. It's our own hospital radio wishing you a quick recovery(康复). |
1. Who do you think the listeners might be? |
A. Patients. B. Visitors. C. Doctors. D. Nurses. |
2. How many wards are there in this hospital? |
A. 8. B. 80. C. 100. D. 800. |
3. Which is NOT allowed in the hospital? |
A. Listening to the hospital radio. B. Visiting patients in the morning. C. Smoking in the smoking-rooms. D. Getting up early in the morning. |
4. What program will follow this radio talk? |
A. Hospital rules. B. A weather report. C. A free talk. D. A music program |
5. What sign can you see in the wards? |
A. No speaking. B. No parking. C. No smoking. D. No people. |