1234567891011121314151617181920212223
// point.cpp #include <iostream> #include "point.h" using namespace std; void point::init(int x1, int y1) { x = x1; y = y1; } int point::getX() { return x; } int point::getY() { return y; } void point::print() { cout << "(" << x << "," << y << ")" << endl; }