So, i'm trying to simulate a program that organizes clients on a plane.
I made a menu, and i have to make 4 options;
1. Add passengers to a seat [Check]
2. Check reservations [Check]
3. Erasing reservations
4. Check available spaces.
This is my struct;
Then i have a switch to select the options, i already made 1 and 2 completely, and thank god they are working, it took me all afternoonCode:struct Person { char Name[65]; char ID[20]; char gender[10]; int age; }Vip[4][3],Smokers[9][5],Non[9][5];
Could you help me out with the two other options?
How can i erase the content of my seats?
And how do i make it so that it can "realize" that the seat is already taken
How can i make it count the available seats?