See Im Tryna Make My Text Based RPG in Console Application.


when using if statement i want it to repeat its self if they dont enter the right character on keyboard.


Say i wanted them to enter their home from a list.

cout<<"Where Would you like to go?\nHome\nJob\nStore";
cin>>y;
if(!strcmp(home,"h")){
//Make it go to the home and do some stuff then if it isnt ensertered right it will display a message and say "Its To Early to go here Because Your Broke";


how could i work this out?