c语言的火车票管理系统设计
摘 要 1一、引言 3二、概要设计 3三、详细设计 5(一) 主菜单 5(二) 列车信息管理 51. 添加新列车 52. 查看列车号 63. 查看乘车区间 7(三) 乘客信息管理 81. 乘客信息 82. 候补乘客信息 9(四) 订票办理 9(五) 退票办理 11四、编码 11五、测试 11(一) 列车信息管理 111. 添加新列车 112. 查看列车号 143. 查看乘车区间 14(二) 订票办理 15(三) 乘客信息管理 161. 乘客信息 162. 补乘客信息 17(四) 退票办理 18六、总结 20致谢 21参考文献 22附录 23摘 要本设计是一个基于C语言实现火车购票的系统。今天,IT产业是一个以方便快捷的方式带来社会工作环境变化的产业。信息技术产业蓬勃发展,在各个领域都有其广阔的发展空间。我们正处在一个变革的时代,可以消除当前流行体系的所有障碍。手工铁路人工操作系统很难处理,如机票预订、机票的取消和乘客产生的查询等都需要足够的时间来执行。在研究和分析该系统的工作过程中,出现了许多问题。 本设计通过c语言设计一个火车购票系统,该系统相比手动操作系统更为简便,更更易操作,并且节约时间。在观察了购票需要哪些信息和它的大致流程后,将想到的东西先写下来,对其系统一步一步的设计和测试,不断完善其功能,通过对C语音的学习,将想到的东西编辑出来。此项程序相比于曾经的手工铁路人工操作系统更为简便,并且利用c语音设计的这个程序将会节省大部分人力,减少人工成本。使用者仅仅需要在应用端进行操作便可以,系统的维护也更加的简便。通过设计订票退票的功能使用户可以方便的使用此系统,并且根据用户的需求也可按其指示操作,到达乘客的使用目的。
目录
Abstract
Today, IT industry is an industry which brings changes in the working environment of our society in a convenient and efficient way. IT industry is flourishing and has its scope in relatively all the fields. We are in an era of change and can d *好棒文|www.hbsrm.com +Q: ¥351916072¥
o away with all the obstacles of the current prevailing system. The existing manual system of Railways is very difficult to handle as the various operations like reservation of tickets, cancellation of ticket and queries generated by the passengers take enough time in executing. While studying and analyzing the working of this system, there were many problems that occurred.
This design adopts c language to design a train ticketing system, which is easier and easier to operate than the manual operating system, and saves time. In looked at the ticket need what information and its general process, will think of something to write down, step by step in the design of the system and test, continuing to improve its function, through the study of C speech, will think of something to edit. The program is simpler than the manual rail system that used to be, and the program that USES the c voice design will save most of the labor and labor costs. The user simply needs to operate on the application side, and the maintenance of the system is more convenient. This system can be conveniently used by the user through the design of the ticket refund function, and can be operated according to the users requirements to reach the purpose of passengers.
keyword:C language, system , tick
一、引言
铁路预定系统的主要目的是准确地执行所有的功能或操作,而这之中会随即产生各式各样的问题。重复的数据意味着产生很多的相同的记录,由于这个原因,我们的数据库变得很长,很难维护。如果数据存在重复,那么还会存在数据不一致的情况。基于上面的问题,很难处理数据库。例如,如果一个乘客进行了一个查询,并且有重复的数据,那么就无法快速简洁的处理乘客的查询。
如果对所有重复记录进行了操作,那么记录操作是非常耗时的。例如,如果一个记录在表中重复输入两次,只有一个记录被更新,那么在查询处理中就会有一个问题。首先如果客户想取消他/她的预订,车票的信息就需要全部删除。如果表格中含有有重复的记录,一旦不是所有的记录都被删除了,客户将无法取消订票。
在以往的系统中,在插入的问题中,它不会强制要求乘客行为,而将数据输入到表中。用户即使在表中输入无关的、错误的信息也不会导致结果不准确,记录不一致。在我们新的计算机记录保存系统中,指定了域,以强制录入有效的数据。例如,用户即使在表中输入不正确的数据,系统则会直接提醒用户输入错误,而不是录入系统。
C语言介于高级语言和低级语言(汇编语言)之间,兼有二者之特点,故称为“中级”语言。在大学中学习了C语言,那么就将其运用到实践,而并非仅仅浅于理论,遂将所学加以实践用于此。
二、概要设计
在此系统中设计列车信息,首先确定设计列车信息的几个部分,包括车次、乘车区间、发车时间、各种票价、剩余票数和总票数。将各个部分与列车信息相互联系起来,确保系统的正确性,达到能够让乘客一目了然的选择自己想要的功能。将列车信息分为六个部分,使其能够完整的运行并为客户更好的服务。
图1 列车信息图表
在此系统中设计乘客信息数据,确立其主要的结构部分,并将每个部分一一对应,
让乘客能够清楚的了解在此部分购票时需要填写哪些信息,方便的填写自己的信息以购票。
图 2 乘客信息图表
目录
Abstract
Today, IT industry is an industry which brings changes in the working environment of our society in a convenient and efficient way. IT industry is flourishing and has its scope in relatively all the fields. We are in an era of change and can d *好棒文|www.hbsrm.com +Q: ¥351916072¥
o away with all the obstacles of the current prevailing system. The existing manual system of Railways is very difficult to handle as the various operations like reservation of tickets, cancellation of ticket and queries generated by the passengers take enough time in executing. While studying and analyzing the working of this system, there were many problems that occurred.
This design adopts c language to design a train ticketing system, which is easier and easier to operate than the manual operating system, and saves time. In looked at the ticket need what information and its general process, will think of something to write down, step by step in the design of the system and test, continuing to improve its function, through the study of C speech, will think of something to edit. The program is simpler than the manual rail system that used to be, and the program that USES the c voice design will save most of the labor and labor costs. The user simply needs to operate on the application side, and the maintenance of the system is more convenient. This system can be conveniently used by the user through the design of the ticket refund function, and can be operated according to the users requirements to reach the purpose of passengers.
keyword:C language, system , tick
一、引言
铁路预定系统的主要目的是准确地执行所有的功能或操作,而这之中会随即产生各式各样的问题。重复的数据意味着产生很多的相同的记录,由于这个原因,我们的数据库变得很长,很难维护。如果数据存在重复,那么还会存在数据不一致的情况。基于上面的问题,很难处理数据库。例如,如果一个乘客进行了一个查询,并且有重复的数据,那么就无法快速简洁的处理乘客的查询。
如果对所有重复记录进行了操作,那么记录操作是非常耗时的。例如,如果一个记录在表中重复输入两次,只有一个记录被更新,那么在查询处理中就会有一个问题。首先如果客户想取消他/她的预订,车票的信息就需要全部删除。如果表格中含有有重复的记录,一旦不是所有的记录都被删除了,客户将无法取消订票。
在以往的系统中,在插入的问题中,它不会强制要求乘客行为,而将数据输入到表中。用户即使在表中输入无关的、错误的信息也不会导致结果不准确,记录不一致。在我们新的计算机记录保存系统中,指定了域,以强制录入有效的数据。例如,用户即使在表中输入不正确的数据,系统则会直接提醒用户输入错误,而不是录入系统。
C语言介于高级语言和低级语言(汇编语言)之间,兼有二者之特点,故称为“中级”语言。在大学中学习了C语言,那么就将其运用到实践,而并非仅仅浅于理论,遂将所学加以实践用于此。
二、概要设计
在此系统中设计列车信息,首先确定设计列车信息的几个部分,包括车次、乘车区间、发车时间、各种票价、剩余票数和总票数。将各个部分与列车信息相互联系起来,确保系统的正确性,达到能够让乘客一目了然的选择自己想要的功能。将列车信息分为六个部分,使其能够完整的运行并为客户更好的服务。
图1 列车信息图表
在此系统中设计乘客信息数据,确立其主要的结构部分,并将每个部分一一对应,
让乘客能够清楚的了解在此部分购票时需要填写哪些信息,方便的填写自己的信息以购票。
图 2 乘客信息图表
版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/783.html