To keep program no use of graphics.h is there . It use randomize function to get different words.
In the game of Hangman, the computer chooses a word at random from a given list of words. This word is the answer. The player then tries to guess the word, by guessing one letter at a time. Whenever the user guesses a letter that is in the answer, all occurrences of that letter are revealed to the user. The game ends when the user has guessed every letter in the word, before he reaches the allowed number of strikes.
This program is an interactive Hangman game. The focus is to use and manipulate strings and loops. Click on download project button to download zip folder which contains C++ source code file.