Hello, I need to print a menu, displaying the available choices as characters, no problem. I need to store that character into a variable, then check to make sure that character isn't Q or q, no problem. However, if the user enters anything other than a, b, c, d, or q (lower or uppercase is fine), then I need to prompt them to enter another character.
Whats the ideal way to go about this? I don't want to clutter up main, so I thought it would be best to make a char returning function. I tried a few if statements, but then in the end I still need to return something outside of the if statements.