Hello. Im planning to make a hangman game for c++ as my project, i was planning to use txt file for the words and i would like to have a hint on it. Can someone help me on this.And if posiible, can someone make a sample code as a guide for my program. Thank you!.
Look into the fstream library to read text data from files.
Every time the user enters a character, search through the string to see how many matches there are in the word(s). If there is, push back the position in an std::stack. If not, issue a penalty.
but how can i make an option to prompt the user if he wants to have a hint.And also, how can i include the hint in the txt file. Can you please show me some game loops for the game and please explain it because i cannot understand those in the net. Sorry for my english.