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