#include <iostream>

#include <string>

#include <iomanip>

using namespace std;


class Point

{

private:

float x, y;

public:

float getx() { return x; }

void setx(float a) { x = a; }

float gety() { return y; }

void sety(float b) { y = b; }


};


int main(void)

{

Point p1, p2 ,p3;

float v, w;


cout << "Write first point : ";

cin >> v;

p1.setx(v);

cin >> w;

p1.sety(w);

endl;//여기랑


cout << "Write second point : ";

cin >> v;

p2.setx(v);

cin >> w;

p2.sety(w);

endl;//여기서 자꾸 "식별자" 함수 오버로드를 확인할 수 없다고 뜸


v = p1.getx() + p2.getx();

w = p1.gety() + p2.gety();

p3.setx(v);

p3.sety(w);


cout << "<<  sum of two points >>" << endl;

cout << "        x         y"<< endl;

cout << "p1      " << setprecision(4) << p1.getx() << "  " << p1.gety() <<endl;

cout << "p2      " << setprecision(4) << p2.getx() << "  " << p2.gety() <<endl;

cout << "p3      " << setprecision(4) << p3.getx() << "  " << p3.gety() <<endl;



}




함수 오버로드를 확인할 수 없다는게 뭐죳