![]() ![]() ![]() | templates/functions/point-norms-and-compare-3/point.h - The Point class definition - not a template in this version. | Lecture 6 - slide 9 : 46 Program 5 |
// Another variant of the example - now parameterizing non-member Point functions #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