unique-pointers-1/point.h - The usual class Point - nothing of particular interest. | Lecture 4 - slide 16 : 40 Program 1 |
// Just the usual Point class. Nothing of particular interest. class Point { private: double x, y; public: Point(double, double); Point(); ~Point(); double getx () const; double gety () const; void displace(double, double); double distance_to(const Point&); }; std::ostream& operator<<(std::ostream&, const Point&);