问题 问答题

在下面程序中的下划线处填上适当的语句,使程序的输出结果如下:
11,77
11,77
源程序如下:
#include<iostream>
using namespace std;
class base

private:
int x,y;
public:
void initxy(int a,int b)x=a;y=b;
void show()
______

void main()

base a,b;
a.show();
b=a;
b.show();

答案

参考答案:cout<<x<<","<<y<<endl;
a.initxy(11,77);

单项选择题
判断题