题目内容
下列程序的输出结果是【 】。
include<iostream>
using namespace std;
class Base{
public:
int m,n;
Base(int i,int j):m(i),n(j){}
};
class Derived:public Base{
public:
int m,k,;
Derived(int i,int j):Base(i,j),m(i+1),k(j+1){}
};
int main(){
Derived d(1,5);
cout<<d.m<<d.k<<d.n;
return 0;
}
查看答案
搜索结果不匹配?点我反馈
更多问题