//------------------------------ // Filename : proj2.C // Author : DL Frey // Project : CMSC 202, Spring 2003, Project 2 // Section : 1234 // SSN : xxx-xx-2134 // Date : 2/21/03 // // Description: // This file implements the project 2 specification // for CMSC 202, Spring 2003 // // main() calls function to // Inputs the coordinates of the four corners of a quadrilateral // in the coordinate plane, // Determine and display the type of quadrilateral // (parllelogram, square, rectangle, trapezoid, irregular) // Print the coordinates of the corners, the area and perimeter. // --------------------------------------------------------- #include #include "Quadrilateral.H" #include "Proj2Aux.H" using namespace std; int main ( int argc, char* argv[]) { Quadrilateral quadrilateral; // verify that no command line arguments were entered if (argc != 1) { cerr << "No command line arguments required" << endl; cerr << "Usage: Proj2" << endl; exit (-1); } cout << endl << "This is my optional greeting" << endl << endl; InputCorners (quadrilateral); DisplayQuadrilateral (quadrilateral); return 0; }