第15题: [单项选择]What is the woman’s replyWhat is the woman’s reply A. She knows Professor Arnold has come. B. She thinks Professor Arnold has checked in. C. She is sure that Professor Arnold has arrived. D. She doesn’t know whether Professor Arnold has arrived. 参考答案:D 答案解析:[听力原文] M: Has Professor Arnold from Sydney University arrived W: I’ll have to check. Then I’l
第31题: [单项选择]以下类定义中可能会引起错误的语句是 class A { public: ~A( ){} //1 int i; //2 private: int j; //3 A(int i){i++;} //4 }; A. 1 B. 2 C. 3 D. 4 参考答案:D 答案解析:[命题目的] 考查关于C++语言类的定义方法。
[解题要点] 在c++语言中类定义中的构造函数是私有的,但是其却调用了其中的公有变量,在实例化时会出现错误。
[考点链接] c++语言类的定义