#include "stdstuff.h" #include "Point.h" int main () { Point p1, p2, origin (0,0); double x, y, distance1, distance2, delta_x, delta_y; cout << "Enter x and y for the first point: "; cin >> x >> y; p1.set (x, y); cout << "Enter x and y for the second point: "; cin >> x >> y; p2.set (x, y); distance1 = p1.distancefrom(p2); distance2 = p1.distancefrom(origin); cout << "The first point is " << distance1 << " units from the second point and " << distance2 << " units from the origin.\n"; cout << "Enter x and y distances for moving point 1: "; cin >> delta_x >> delta_y; p1.move (delta_x, delta_y); if (p1.isEqualTo(p2)) { cout << "After moving the first point, the" << " two points are equal.\n"; } else { cout << "Points are not the same.\n"; } pause(); return 0; }