完成下面类中构造函数的定义。
#include
class A
{private:
int y;
int x;
public:
A(int,int);
A(const A&);
void show()
{cout<<"x="< } }; A::A(int i;int j):_________ {} A::A (_________) {x=t.x;y=t.y} void main() {A a1(3,5); a1.show(); A a2(a1); a2.show(); }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服