I'm teaching myself C++ and was wondering if anyone had source code for a simple hangman program, preferably demonstrating some usage of classes and that can be played against a computer.
you are given a list of words stored in a textfile called " words.txt". read in the string values from the file and store them into an array.
now use a Random number function to generate a number from 1 to the number of words read. this number will be the index of the word to guess iin the array for the current execution of the Hangmam game.
Once you get a workung solution of the game, then you are encouraged to use ascii to graphical enhance your solution.