#include //for the sqrt function #include "point.h" float point::r() const { return sqrt(x*x + y*y); } ostream& operator<<(ostream& ost, const point& p) { return ost << "(" << p.x << ", " << p.y << ")"; }