typedef struct airline { char terminal_name[size];//终点站名 char air_Numer[size];//航班号 char plane_Numer[size];//飞机号 char day[100];//飞行日期 int ticket_price; //机票价格 int Sum_Ticket_Numer;//总位置 int ticket_sur;//余票量 linklist *order;//乘员名单域指向乘员名单链表的头指针 } lineinfo; lineinfo *start; struct airline air_info[MAXSIZE]= { {"北京","K12312","B8571","2021/07/05-13:00--2021/07/05-15:00",509,100,100}, {"上海","D24322","S1002","2021/07/06-13:00--2021/07/06-15:00",529,100,100}, {"伦敦","K35234","L1003","2021/07/07-13:00--2021/07/07-15:00",642,100,100}, {"杭州","D42414","B9571","2021/07/08-13:00--2021/07/08-15:00",322,100,100}, {"武汉","K12314","B3451","2021/07/09-13:00--2021/07/09-15:00",562,100,100}, {"广州","K64124","C3451","2021/07/10-13:00--2021/07/10-15:00",645,100,100}, {"美国","H12412","M3451","2021/07/11-13:00--2021/07/11-15:00",685,100,100} }; start=air_info;
时间: 2023-07-19 13:48:44 浏览: 132
这段代码定义了一个名为 "airline" 的结构体,其中包含了航班的相关信息,如终点站名、航班号、飞机号、飞行日期、机票价格、总位置、余票量以及乘员名单链表等。同时还定义了一个指向 "airline" 结构体的指针 "start",并将 "air_info" 数组的首元素的地址赋值给了它。这个数组中包含了多个 "airline" 类型的结构体变量,每个变量表示一个航班的信息。
阅读全文