#include <iostream>
#include <cmath>
using namespace std;
class Point;
class Manager
{
public:
void Myprint(const Point & another);
};
class Point
{
friend void Manager::Myprint(const Point & another);
public:
Point(int a=1,int b=2)
:m_x(a),m_y(b)
{
}
void func()
{
cout << "(" << this->m_x << "," << this->m_y << ")" << endl;
}
private:
int m_x;
int m_y;
};
void Manager::Myprint(const Point & another)
{
cout << "Myprint():(" << another.m_x << "," << another.m_y << ")" << endl;
}
int main()
{
Point p1(3,4);
Manager m;
m.Myprint(p1);
return 0;
}