| Kalisnoir (1) | |||
|
So wasn't quite sure how to word the problem for the Title but my problem should be quite simple for someone with decent knowledge of C++. Basically I am creating a text based RPG and I currently use numbers to navigate everything, and this isn't a problem until I need a menu key. I need to be able to take the userInput and accept a char to open the menu. Here is a sample for what I mean;
Where else if(userInput == 0) menuFuncNav(); I need to be able to accept a char such as "x" and still take in the numbers. I tried using it as a string and just putting the numbers in "" but the problem is that I have code that uses the userInput in part of the menu to select the weapon from the array. | |||
|
Last edited on
|
|||