Метод поза класом
class Point
{
public:
int x;
int y;
void Show(Point, Point); // прототип
};
void Point::Show()
{
cout << "x=" << x << " y=" << y << endl;
}
class Point
{
public:
int x;
int y;
void Show(Point, Point); // прототип
};
void Point::Show()
{
cout << "x=" << x << " y=" << y << endl;
}