【单选题】( 33 )有如下程序: #include using namespace std class Pair{ int m int n public: Pair ( int i , int j ) : m ( i ) , n ( j ) {} boot operator > ( pair p ) const // 须在类体外给出定义 } ; int main () { Pair Al ( 3,4 ) ...
【单选题】( 30 )有如下程序: #include using namespace std class AA{ lilt k protected: int n void setK ( int k ) { this->k=k} public: void setN ( int n ) { this->n=n} } class BB: public }{/* 类体略 */} int main () { BB x...
【单选题】有如下程序: #include using namespace std; class Pair{ int m,n; public: Pair(int j,int k):m(j),n(k){} int get{return m;} int getconst{return m+n;} }; int main{ Pair a(3,5); const Pair b(3,5); tout$amp;
【单选题】有如下程序: #include using namespace std; class AA{ int k: protected: int n; void setK(int k){mis->k=k;}. public: void setN(int n){tllis->n=n;} }; class BB:public AA{/*类体略*/}; int main(){ BB X; x.n=l: //1 ...