0

The below code will help you get out of the loop.

cout<<"Please type a number then press Enter: \n\n\n";
	integervalue = cin.get();

The code you have writtien doesn't makes any sense to the program. try a different check for the integer value.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.