#include "point.h" // Read in a point like (1.2, 3.4) void read (point& P) { char junk; cin >> junk >> P.x >> junk >> P.y >> junk; } // Write out a point void write(point P) { cout << "(" << P.x << "," << P.y << ")"; }