有如下程序:#includeiostreamusingnamespacestd;classAA{intn;public:AA(intk):n(k){}intget(){returnn;}intget()const{returnn+1;}};intmain(){AAa(5);constAAb(6);couta.get()b.get();return0;}执行后的输出结果是()。A.55B.57C.75D.77

有如下程序:

#include<iostream>

usingnamespacestd;

classAA{

intn;

public:

AA(intk):n(k){}

intget(){returnn;}

intget()const{returnn+1;}

};

intmain()

{

AAa(5);

constAAb(6);

cout<<a.get()<<b.get();

return0;

}

执行后的输出结果是()。

A.55

B.57

C.75

D.77


相关考题:

有如下程序: #include<iostream) using namespace std; class AA{ int n; public: AA(int k):n(k){} int get(){return n;} int get()const{return n+1;} }; int main() { AA a(5); const AA b(6); COUt<<A.get()<<b.get(); return 0A.55B.57C.75D.77

有如下程序: include using namespace std; class AA { int n; 有如下程序: #include<iostream> using namespace std; class AA { int n; public: AA(int k);n(k){} intget(){return n;} int get()const{return n+1;} }; int main() { AA a(5); const AA b(6); cout<<a.get()<<b.get(); return 0; } 执行后的输出结果是A.55B.57C.75D.77

有如下程序:#includeiostreamusing namespace std;class AA{public:AA(){tout‘l’;}};class BB:public AA{int k;public:BB():k(0){cout…2;}BB(int n):k(n){cout‘3’;}};int main(){BB b(4),C;return 0;}A.1312B.132C.32 D、1412

有如下程序:includeusing name。pace std;class AA{int n:public:AA(int k):n(k){}in 有如下程序: #include<iostream> using name。pace std; class AA{ int n: public: AA(int k):n(k){} in get( ){return n;} int get( )const{return n+1;} }; int main( ){ AA a(5); const AA b(6); cout<<a.get( )<<b.get( ); return 0: 执行后的输出结果是A.55B.57C.75D.77

有如下程序:includeusing namespace std;class XX{protected;int k;public:XX(int n= 有如下程序: #include<iostream> using namespace std; class XX{ protected; int k; public: XX(int n=5):k(n){} ~XX(){cout<<"XX";} Virtual void f()cons=0; }; inline void XX::f()const{cout<<k+3;} class YY:public XX{ public:A.28XXB.28YYXXC.-33XXD.-33XXYY

有如下程序:include using namespace std;class AA {int n;public:AA(int k):n(k) {} 有如下程序:#include <iostream>using namespace std;class AA { int n;public: AA(int k):n(k) {} int get(){return n;} int get()const { return n+1; }};int main(){ AAa(5); const AA b(6); cout<<a. get()<<b. get(); return ();}执行后的输出结果是( )。A.55B.57C.75D.77

有如下程序:includeusing namespace std;class AA{ int n;public: AA(int k):n (k){} 有如下程序: #include<iostream> using namespace std; class AA{ int n; public: AA(int k):n (k){} int get(){return n;) int get()const{return n+1;} }; int main() { AA a(5); const AA b(6); cout<<a.get()<<b.get(); return 0; } 执行后的输出结果是A.55B.57C.75D.77

有如下程序:includeusing namespaee std;class AA{public:AA( ){cout 有如下程序: #include<iostreanl> using namespaee std; class AA{ public: AA( ){cout<<'1';} }; class BB:public AA{ int k; public: BB( ):k(0){eout<<'2';} BB(int n):k(n){cout<<'3';} }; int main( ){ BB,b(4),c; return 0; } 程序的输出结果是A.1312B.132C.32D.1412

有如下程序:include using namespace std;class AA{ int n;public: AA(int k):n (k) 有如下程序: #include <iostream> using namespace std; class AA{ int n; public: AA(int k):n (k) { } int get(){return n; } int get()const{return n+1;} } int main() { AA a(5); const AA b(6); cout<<a.get()<<b.get(); return 0; } 执行后的输出结果是( )。A.55B.57C.75D.77

有如下程序:includeiostreamusingnamespacestd;classAA{public;AA( ){cOUt<<1;)};classBB:publicAA{intk;public:BB( ):k(0){tout<<12;}BB(intn):k(n)(cout<<3;)};intmain( ){BBb(4),c;return0;}运行时的输出结果是( ).A.1312B.132C.32D.1412