// This program reads in a triangle, defined by 3 vertices // sample input (1.5,2.0) (3.1,4) (5.5,6.6) #include "point.h" #include "triangle.h" int main() { // Read in a triangle triangle T; read(T); // Output the first vertex of the triangle point P = T.vertex[0]; cout << "The first vertex is: "; write(P); cout << endl; return 0; }