Code:
printf("cout<< Enter Name\n"); fflush(stdin); gets(FIRSTPLANE[i].NAME); fflush(stdin); printf("cout<<Enter Address\n"); gets(FIRSTPLANE[i].ADDRESS); fflush(stdin); printf("cout<<Enter Phone Number"); gets(FIRSTPLANE[i].PHONE); FIRSTPLANE[i].SEATNUM=i+1; void MENU() { cout<<" please enter 1 for Smoking First Class\n "; cout<<" please enter 2 for Non-Smoking First Class\n "; cout<<" please enter 3 for Smoking Economy Class\n "; cout<<" please enter 4 for non-Smoking Economy Class\n "; cout<<" please enter 5 to exit\n"; } //both header files are inserted
Comment