[code:1]#include <iostream>
using namespace std;
// Point 클래스 정의
class Point
{
public :
// 생성자
Point( int ax = 0, int ay = 0 );
void SetPoint( int ax, int ay);
// 출력 연산자 함수 정의
friend ostream& operator << ( ostream& co, Point pt );
// 입력 연산자 함수 정의
friend istream& operator >> ( istream& ci, Point& pt );
public :
int x, y; // 멤버값 (x,y)
};
// 생성자
Point::Point( int ax, int ay )
{