here i want the user to enter the value 1 or 0 form the keyboard (quite simple). so i created a condition if he typed differente values escolhaJog != 1 || escolhaJog != 0. But my problem comes when the user type a character. And this character is stored in the variable escolhaJog, which was defined as short integer. I tried a lot of stuffs but i always stuck in an infinite loop, everytime i try to create a char condition (maybe is where im doing wrong). I would like to now: there is a way to do this, a condition which avoid the user type characters and then print in the screen cout << "Incorrect Value. Type Again..."; and give him a chance to type again?
ty guys