#include #include #include "point.h" using namespace std; int main() { const point A {0.0, 3.0}; //on the Y axis const point B {4.0, 0.0}; //on the X axis const point C; //the origin (calls the default constructor) if (!equals(A, B)) { //if not equals cout << "Length of line AB is " << distance(A, B) << "\n"; cout << "Area of triangle ABC is " << area(A, B, C) << "\n"; } return EXIT_SUCCESS; }