输入描述输入x和y
输出描述按样例输出
提示你需要提交除了main函数之外的其他代码
样例输入
2 4
样例输出
12 14
-8 -6
#include
#include
#pragma warning(disable:4996)
#include
using namespace std;
class Test
{
private:
int x, y;
public:
Test() { x = 0; y = 0; }
Test(int x, int y)
{
this->x = x;
this->y = y;
}
Test* setXY1(int x, int y)
{
this->x += x;
this->y += y;
return this;
}
Test& setXY2(int x, int y)
{
this->x -= x;
this->y -= y;
return *this;
}
void showXY()
{
cout << this->x << " " << this->y << endl;
}
};



