- 5
- 0
- 约7.47万字
- 约 58页
- 2018-07-07 发布于湖北
- 举报
华科计算机c语言课程设计源代码9ur3uc
附录: 附录I 源程序清单/*《飞机航班查询系统》2012年10月计算机科学与技术专业11级10班 王涛U201114445 */#include stdio.h#include stdlib.h#include windows.h#include wincon.h#include time.h#define SCR_ROW 25 /*屏幕行数*/#define SCR_COL 80 /*屏幕列数*//**帐号密码信息链结点结构*/typedef struct ip_node{ char id[15]; /*帐号*/ char password[15]; /*密码*/ struct ip_node *next;} IP;/**航班信息链结点结构*/typedef struct flight_node{char flight_number[10]; /*航班编号*/char aircraft_model[20]; /*客机名称*/char flight_corp_number[10]; /*所属航空公司编号*/char flight_corp_name[20]; /*所属航空公司名称*/char initial[10]; /*始发地*/char terminal[10]; /*目的地*/char begin_time[10]; /*始发时间*/char end_time[10]; /*到达终点时间*/float one_price; /*单程票价*/float round_price; /*来回票价*/char full_time[10]; /*全程时间*/int mileage; /*飞行里程*/struct flight_node *next; /*指向下一结点*/struct stop_airport_node * anext; /*指向经停机场信息链结点的指针*/} FLIGHT_NODE;/**经停机场信息链结点结构*/typedef struct stop_airport_node{char airport_number[10]; /*机场编号*/char airport_name[20]; /*机场名称*/char regional_number[10]; /*所属地域编号*/char flight_number[10]; /*航班编号*/char arrive_time[10]; /*到达时间*/char leave_time[10]; /*离开时间*/char cur_time[10]; /*到目前为止飞行时间*/int cur_mileage; /*到目前为止飞行里程*/struct stop_airport_node *next; /*指向下一节点*/struct stop_flight_node *fnext; /*指向经停航班信息结点的指针*/} STOP_AIRPORT_NODE;/**经停航班信息链结点结构*/typedef struct stop_flight_node{char flight_number[10]; /*经停航班编号*/char aircraft_model[20]; /*经停客机型号*/char airport_number[10]; /*机场编号*/char regional_number[10]; /*所属地域编号*/char flight_type[20]; /*航班类型:始发-经停-终到*/char arrive_time[10]; /*到达时间*/char leave_time[10]; /*离开时间*/float cur_one_price; /*本机场到终点单程票价*/float cur_round_price; /*本机场到终点来回票价*/int surplus_ticket; /*余票数量*/struct stop_flight_node *next;/*指向下一个结点*/} STOP_FLIGHT_N
原创力文档

文档评论(0)