Hi, its an assignment i need to do. The while loop working on well when i input an integer but when a letter is being input, the while loop run for infinity. I had seen through the other thread but still cannot understand how to do. Please help...
while(choice!=1&&choice!=2&&choice!=3&&choice!=4)
{cout<<"The request is invalid, please try again."<<endl;
cout<<"Please enter your choice again"<<endl;
cin>>choice;
}