1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
const int ROW = 6;
const int COLUMN = 4;
void Seat()
{
char forename[20];
char surname[20];
cout << "Please Enter customers Forename" << endl;
cin >> forename;
cout << "Please Enter customers Surname :" << endl;
cin >> surname;
cout << "Please select seat to reserve/book" << endl;
int i,j;
int seatlayout[6][4] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
cout << "\n\n\n";
cout << "\t\tCOLUMN\n";
cout << "\tA" << "\tB" << "\tC" << "\tD" << endl;
for (i=0;i<ROW;i++)
{
cout << "\nROW "<<i+1;
for (j=0;j<COLUMN;j++)
cout << "\t" << seatlayout[i][j];
}
};
|