hey :)
i have this piece of code:
while(!(std::cin >> input) || input < 1 || input > 100){
std::cout << "not valid, try again: ";
}
it should allow the user only to be able to write numbers between 1 and 100 (input is a short int), but when the user enters any letters, it displays the error "not valid, try again:" in a loop, so it never stops and you'll have to exit the program.
Please help, anyone