// ====================================================================== // Hangman program: Let the user guess words from the vocabulary file. // A. Fischer, May 13, 2001 file: main.cpp // Modified by M. Fischer, October 8, 2009 //=========================================================================== #include "tools.hpp" #include "game.hpp" //----------------------------------------------------------------------- int main( int argc, char* argv[] ) { cout << "\n--------- Constructing Hangman ----------\n"; Game g( argc>1 ? argv[1] : NULL ); // Get optional file name. g.play(); // Play game. cout << "\n----------- Have a good day! -----------\n\n"; }