主观

给出下面程序的输出结果

#include ﹤iostream﹥

using namespace std;

class base

{

private:

int x;

public:

void setx(int a){x=a;}

int getx( ){return x;}

};

void main( )

{

base a, b;

a.setx(89);

b=a;

cout﹤﹤a.getx( )﹤﹤endl;

cout﹤﹤b.getx( )﹤﹤endl;

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服