// main4a.cpp // This is the source to hangman by Forest J. Handford // Copyright (c) 1998 ////////////////////////////////////////////////////// #include // For input/output #include // For file input/output #include // For strcpy #include // For time #include // For toupper and tolower #define MAX_WORD_SIZE 15 // The max size for words #define MAX_WORDS 255 // The max number of words void LoadFile(); // Prototypes for our functions void RunGame(); void DrawGallows(int State); typedef char String[MAX_WORD_SIZE]; // Make a char type with 15 chars String Words[MAX_WORDS - 1]; // This array will hold our words int Count; //word count // the main function of our hangman game void main() { char Continue = 'Y'; // end game if = to 'N' cout<<"Welcome to Hangman . . . Don't lose your head!"<>Continue; Continue = toupper(Continue); } // say good bye cout<>Words[Count++]; // If we surpass the max exit and tell the user if(Count > MAX_WORDS - 1) { cout<>Letter; // We will use only lower case letters Letter = tolower(Letter); // Loop through the word for(Subscript = 0; Subscript < Size; Subscript++) { //if the guess is good tell the user and update Guess if(Copy[Subscript] == Letter) { Guess[Subscript] = Letter; Correct = 1; cout<