here is the question im sorry it might be silly but it is because i have just started learning c++
My question is that im trying to get information from the user as long as what i get from the user is not H,P,or U i want it to ask the user to enter the iformation again and display a warning message
1 2 3 4 5 6 7 8
//Buildings data entry section
for (int i = 0; i < numOfBuildings; i++)
{
cout << "Enter information for building " << i + 1 << ":" << endl;
cout << "---------------------------------" << endl;
cout << "Select Building type(H: for Hospital, P: for Pharmacy, U: for University): ";
cin >> buildingType[i];
my cin will be buildingType[i] whenever i try to do do-while loop im not successful i need to ask the user to enter the buildingType until they enter H, U, or P help please