// file main.cpp #include #include "line.hpp" int main() { float ax, ay, bx, by; float dist; Line linha; ax = 1; ay = 2; bx = 3; by = 4; linha.SetExtremes(ax,ay,bx,by); dist = linha.GetLength(); fprintf(stdout,"From (%3.1f,%3.1f) ",ax,ay); fprintf(stdout,"to (%3.1f,%3.1f) ",bx,by); fprintf(stdout,"is %12.8f long.\n",dist); return(0); } // end of file main.cpp