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