源码简介: |
1 先定义一个乘客基本信息的类包含乘客的姓名、证件号、订票数量及所乘的航班号(注:每个航班有固定的人数限制,若满额则提示其他可供选择的航班。 2 建立一个功能类,包括对航班信息和乘客订票信息的录入及修改的函数,其中订票信息采用单链表的顺序存储方式存储。另外还包括对信息的查询和修改的功能函数,乘客退票的函数。并将最终的改动结果通过i/O流写入磁盘文件保存。 3 编写主函数,对编写的航班系统进行全面测试,对用户界面采用人性化的菜单方式。 -1 to define a passenger basic information of the passengers name, contains the number and id card number, booking tickets on flight number (note: each flight of a fixed size limit, if the quota is prompting other alternative flights. 2 set up a function class, including flight information and passenger ticket booking information typing and modification of the function, including booking information using single order of table of storage ways storage. Also include the information query and modify functions, passengers made function. And will eventually changes the results through the I/O flow written to the disk file save. 3 to write the main () function, to write flight system comprehensive test, to the user interface using humanized menu mode.
|