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 *51今日免费论文网|www.jxszl.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 乘客信息图表
原文链接:http://www.jxszl.com/dzxx/txgc/63399.html