Here is some code I am testing with to get a better understanding of enums. Please remember I am a beginner so do not go into super complex solutions...
What I am trying to do is make my code "readable". SO I want a function to handle the printing of the menu text. I would like to simple have the function call menu(PlayAgain0; for example.... as this is readable.. .then
Anyway.. I have got this code working.. but it requires me to initialise the enume outside of main as a kind of global variable.
Other variables I have used in functions like string and int and stuff, I could just initialise a variable with the same name as in main... is there a way to do this with enum?
It just seams bad to have the enume variable as a variable getting initialised outside main.
This is the only other way I can get it to work with out a global.... but seams wrong as if i ever need to edit it I have to remember to edit it in two places not just one.