#include "iostream"
using namespace std;
class point{
private:
int x;
int y;
public:
point(){}
point(int _x,int _y):x(_x),y(_y){}
//声明成有缘函数
friend ostream& operator<<(ostream& o,point& t);
friend istream& operator>>(istream& i,point& t);
//前++
point& operator++(){
this->x+=1;
this->y+=1;
return *this;
}
//后++
point operator++(int){
point t(this->x,this->y);
this->x+=1;
this->y+=1;
return t;
}
//+,-,*,/.......号
point operator+(point& t1){
point t3(t1.x+this->x,t1.y+this->y);
return t3;
}
};
ostream& operator<<(ostream& o,point& t){
return o<<t.x<<"."<<t.y;
}
istream& operator>>(istream& i,point& t){
return i>>t.x>>t.y;
}
int main()
{
point A(10,19);
point B;
point C;
//cin>>B;
//cout<<B<<endl;
cout<<A<<endl;
cout<<++A<<endl;
B=A++;
C=A+B;
cout<<C<<endl;
cout<<B<<endl;
cout<<A<<endl;
//cout<<"hello world"<<endl;
return 0;
}