class CPoint {
int x,y;
public:
void set(int a,int b){x=a;y=b;}
void print() const { cout<<"("<
friend CPoint Add(const CPoint&, const CPoint&);
};
CPoint operator+(const CPoint& a,const CPoint& b){
CPoint s;
s.set(a.x+b.x,a.y+b.y);
return (s);
}
CPoint Add(const CPoint& a,const CPoint& b){
CPoint s;
s.set(a.x+b.x,a.y+b.y);
return (s);
}