I'm working on this program and this is part of the code:
My problem is if the user enters something like (number and more than one letter) 5adffe the user should get an error.Code:cout << "Enter seat (11f): "; cin >> p.row >> p.column; cin.ignore(INT_MAX,'\n'); while(cin.fail()) { cin.clear(); cin.ignore(100,'\n'); cout << "Enter seat (11f): "; cin >> p.row >> p.column; }