数据结构课程教学设计-飞机订票系统设计与实现(里面附有源代码) 联系客服

发布时间 : 星期三 文章数据结构课程教学设计-飞机订票系统设计与实现(里面附有源代码)更新完毕开始阅读3e3c4d6401d8ce2f0066f5335a8102d277a2614a

,.

}

}

printf(\对不起,您输入的航班不存在!\\n\

return 0;

void cancel(passengerList *&PList,flightnode *&h) { }

void main() {

char choice; int t=1;

flightnode *flight; passengerList *PList;

init_flight(flight);//初始化航班链表 load_flight(flight); load_passenger(PList); while(t==1) {

printf(\飞机订票系统菜单*************\\n\printf(\printf(\ 录入信息----------1 *\\n\printf(\ 订 票----------2 *\\n\printf(\ 退 票----------3 *\\n\printf(\ 查询航班----------4 *\\n\printf(\ 查询订单----------5 *\\n\char name[20],ID_num[20]; printf(\请输入你的姓名:\scanf(\

printf(\请输入你的证件号:\scanf(\

delete_passenger(PList,h,name,ID_num);

init_passengerList(PList);

,.

printf(\ 修改航线----------6 *\\n\printf(\ 保存退出----------0 *\\n\printf(\printf(\请选择服务:\choice=getch(); printf(\system(\if(choice=='1'){

add_flight(flight); getch(); system(\book(flight,PList); getch(); system(\cancel(PList,flight); getch(); system(\flight_check(flight); getch(); system(\

passenger_check(PList); getch(); system(\

modify_flight(flight,PList); getch(); system(\printf(\再见!\\n\t=0;

}else if(choice=='2'){

}else if(choice=='3'){

}else if(choice=='4'){

}else if(choice=='5'){

}else if(choice=='6'){

}else if(choice=='0'){

,.

}

}

}

save_flight(flight); save_passenger(PList);