Couple of small questions. Buffer overflow and passing variables through functions?
Just a couple small ones that I couldn't seem to find solid answers to via either this message board or Google.
First of all, I've got a simple numbered menu utilizing an integer for user input via cin. When anything other than a number is entered, the program appears to shoot into an infinite loop.
I've attempted to use both char and string variables to no avail.
As for my second question, I need to pass a string variable with its value across multiple functions. How would I go about accomplishing something like that? I can't seem to find anything on that one either.
These are the last two issues that are preventing me from releasing this project, which was basically a self-taught experiment to see whether I could do it or not, spanning over the last couple of months.