题目内容:
有如下程序: #include<iostream>
usingnamespacestd;
classPair{
intm,n;
public;
Pair(intj,intk):m(j),n(k){}
intget( ){returnIn;}
intget( )const{returnm+n;}
};
intmain( ){
Paira(3,5);
constPairb(3,5);
cout<<a.get( )t<<b.get( );
return0;
}
运行时的输出结果是( )。 A.33
B.38
C.83
D.88
参考答案:
答案解析: