#include <iostream>

using namespace std;

class Point
{
private:
 int xpos, ypos;
public:
 Point(int x = 0, int y = 0) : xpos(x), ypos(y)
 {}
 void ShowPosition() const
 {
  cout<<'['<<xpos<<", "<<ypos<<']'<<endl;
 }
 friend Point operator+(const Point &pos1, const Point &pos2);//이 부분
};

Point operator+(const Point &pos1, const Point &pos2)
{
 Point pos(pos1.xpos + pos2.xpos, pos1.ypos + pos2.ypos);
 return pos;
}

void main()
{
 Point pos1(3, 4);
 Point pos2(10, 20);
 Point pos3 = pos1 + pos2;

 pos1.ShowPosition();
 pos2.ShowPosition();
 pos3.ShowPosition();
}

D:Microsoft Visual StudioMyProjects연습장연습장.cpp(16) : fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1786)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more information
Error executing cl.exe.

주석으로 이부분이라고 해놓은데가 에런데 그냥 넘어갈까요?? ㅋ VISUAL C++6.0에요. ㅜㅜ