# include using namespace std;class Cpoint{ private : int x, y; public: Cpoint(int ax, int bx); ~Cpoint(); void print(void); friend Cpoint inflate(Cpoint &pt, int offset);};Cpoint ::Cpoint(int ax, int bx){ x = ax; y = bx;}Cpoint ::~Cpoint(){ cout << "释放所占的内存" << endl;}void Cpoint ::print(void){ cout << "point" << '(' << x << ',' << y << ')' <}Cpoint inflate(Cpoint &pt, int offset){ Cpoint temp = pt; temp.x += offset; temp.y += offset; return temp;}int main(void){ Cpoint point1(2, 3); point1.print(); point1 = inflate(point1, 3); point1.print(); return 0;};