微信搜索关注"91考试网"公众号,领30元,获取公务员、事业编、教师等考试资料40G!
N”;cout<<y;将输出字符串“PQMN”的地址D.执行语句序列char x[80];ci.getlie (x,80);时,若键入Hay ew year,则x中的字符串是 “Hay”, 参考答案: A cin 是一个输入流对象。----------------------------------------35、 有如下程序: #include <iostream> using namespace std; class AA { int n; public: AA(int k):n(k) { } int get() {return n;} int get()const {retnm n+1; } }; int main() { AA a(5); const AA b(6); cout <<a.get()<<b.get(); return 0; } 执行后的输出结果是______ 。 A.55B.57C.75D.77 参考答案: B const 是可以标志运算符重载的,所以选择B。