I teaching myself how to program in C++ from the book "Jumping into C++". I'm stuck on one of the lessons. I have to have a user select from a list and to keep reprinting the list until the user selects something from the list. I am to use a 'for', 'while', or 'do-while' loop. I picked a 'while' loop as follows:
while( input != 1 || input != 2 || input !=3 )
But this doesn't work. The loop never exits.
Thanks,
Mike
while( input != 1 || input != 2 || input !=3 )
But this doesn't work. The loop never exits.
Thanks,
Mike