main()
{
printf("\n\t\t\t--WELCOME TO TRAVEL AND TOURS--\n");
printf("\n\n\t\t\t\t%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
{
struct plane *men;
int ch;
men=NULL;
while(ch)
{
printf("\n\t\t\tPress ''P'' to Purchase Ticket");
printf("\n\t\t\tPress ''S'' to View Seating Arrangement");
printf("\n\t\t\tPress ''A'' to Print Records");
printf("\n\t\t\tPress ''Q'' to Quit the system");
printf("\n\t\t\tPlease enter your response:");
scanf("%s",&ch);
switch(ch)
{
{
case 'P':
case 'p':
men=purchase_ticket(men);break;
case 'S':
case 's':
men=Seating_arr(men);break;
case 'A':
case 'a':
print(men);break;
case 'Q':
case 'q':
printf("Thank You for Visiting Us!");break;
You need to initialize int ch;
You have some crazy memory things going on, you malloc data but never delete that memory. I don't understand what you're trying to do with your struct declarations, you probably intend to use a simple pointer to plane. I'm not sure if you intend to have your seating arrangement function actually show data, but you are showing an array that you initialize to 0. Most of this is C code, not C++, which would make your life much easier. I suggest you look into the basic class tutorials found on this site.