Comparing Value of Int to String
Say for example you have a menu set up, and you have a limited amount of choices. And you only want to allow ..say 1-4 and cancel out all other options. Like you have an error message come up if they hit anything other than 1-4. Anyway to do that. I went through the forum search and found a few things sorta like I'm asking, but I'm new to c++ and could exactly relate it enough for use.
Like I enter the highed ascii character in int value
dec value 5 to 122 in ascii chart being alittle z.
anyway to directly error out the keys themselves?
Or how else would you go about it?
Thanks