Hey guys, if I want to get user input for example:
Is there anyway i can use a function like the getch() in this case so if the users enters something other than y or x it will ask them for the input again and not crash the program?Code:cout<<"press Y or X"<<endl; cin>>var
Thanks.