#include
using namespace std;
class A
{
private://私有
int x, y;
public:
A(int x1)
{
x = x1;
}
A()
{
cout << "正在执行" << endl;
}
A(int x1, int y1)
{
x = x1;
y = y1;
}
A(A& m)
{
m.x = m.x * 10;
m.y = m.y * 10;
x = m.x;
y = m.y;
}
void setx(int x1)
{
x = x1;
}
void printA()
{
cout << "x=" << x << endl;
}
void printA2()
{
cout << "x=" << x << "y=" << y << endl;
}
};
void main()
{
A a1(10);
a1.printA();
A a2;
A a3(100, 200);
a3.printA2();
A as[3];
A at[3] = { A(11,22),A(33,44),A(55,66) };
at[0].printA2();
at[1].printA2();
at[2].printA2();
A a4(a3);
a4.printA2();
}