This is part of a function for booking seats, can anyone show me how to handle the validation below.To make sure that a seat that has X cannot be booked again.
I tried that but it seems not to be working.
if ((seats [i1][j1][k1] = 'B') || (seats [i1][j1][k1] ='I') || (seats [i1][j1][k1] ='W'))
{
seats[i1][j1][k1] = 'X';
}
else if (seats [i1][j1][k1] == 'X')
{
cout << "Sorry!! the Cabins is already booked" << endl;
break;
}
writeInformation();