给出下面程序的输出结果
#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;
}
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服