#include #include #include "point.h" using namespace std; int main() { //A 3-4-5 right triangle with its right angle at the origin. const point A(3, 0); const point B(0, 4); const point C; cout << "A's distance from origin is " << A.dist() << ".\n" << "The distance between A and B is " << A.dist(B) << ".\n" << "The area of triangle ABC is " << C.area(A, B) << ".\n"; cout << "The midpoint of A and B is "; const point M = A.midpoint(B); M.print(); cout << ".\n"; return EXIT_SUCCESS; }