单项选择题

有如下程序: #inc1ude <iostream> using namespace std; c1ass AA{ intn; public: AA(int k):n(k){} int get0 {return n;} int get()const{retum n+1;) }; int main() { AA a(5); const AA b(6); eout<e_a.get()<<b.get(); return 0; } 执行后的输出结果是( )。

A.55
B.57
C.75
D.77
题目列表

你可能感兴趣的试题

微信扫码免费搜题