templates/functions/point-norms-and-compare-3/point.h - The Point class definition - not a template in this version. | Lecture 5 - slide 37 : 40 Program 9 |
// Another variant of class Point - nothing of particular interest. #ifndef POINT_H #define POINT_H #include <iostream> class Point { private: double x, y; public: Point(double, double); Point(); double getx () const; double gety () const; }; std::ostream& operator<<(std::ostream&, const Point&); #endif // POINT_H