Hey guys so I am making Hangman, I am almost done. I have a menu and the game itself as well as instructions. But the menu and the game are both separate files. How can I make it so the menu calls on the game when the user makes an input?
Would it be better for the menu to call on the hangman.cpp file or integrate them all together or make the game a function?
1. Menu calls on other files
2. All in one
3. Or put the game and instructions into separate functions?
Without posting your code and what your using to compile, I don't think your going to get a complete answer.
Normally you would create a project. include both files. Then when the user chooses a menu option, you would call the game function. You can do it in one file but there is no need to do so.
Once the game is ended, it will return control to the main/menu part of the code.