/////////////////////////////////////////////////////////// // // mazemain.cpp // // When compiled with maze.cpp, this main program // gives you a program that reads a maze from a // text file (specified as a command-line argument) // and prints the resulting mail to standard output. // // Revision history: // 1/11/01 (Jeff Ondich) // /////////////////////////////////////////////////////////// #include #include "maze.h" int main( int argc, char *argv[] ) { // Check the command line to make sure there was // only one argument. if( argc != 2 ) { cerr << "Usage: " << argv[0] << " mazeFileName" << endl; exit( 1 ); } // Read the maze from the file specified in argv[1]. // Name the variable with a slightly obscure reference // so everyone will know you're a liberal arts student. // Then print the maze to cout. Maze knosos( argv[1] ); cout << knosos << endl; return( 0 ); }