• 回答数

    4

  • 浏览数

    190

少女心-
首页 > 期刊论文 > 飞机订票研究论文

4个回答 默认排序
  • 默认排序
  • 按时间排序

不想吃成胖嘟嘟

已采纳

我有,可以帮助到你,看我百度空间

251 评论

甜蜜到腻

#include <>#include <>#include <>#include <>#include <>#include <>#include <>//overflow#define ok 1typedef struct Yidingkehu{//单链表 char name[15];//已订票的客户姓名 int dingpiaoshu;//已订票数量 struct Yidingkehu *next1;//}Yidingkehu,*Link;typedef struct Weidingkehu{//单链队 char name[15];//预订票的客户姓名 int yudingpiao;// 要订票数量 struct Weidingkehu *next2;//下一个链队结点指针}Weidingkehu,*Qptr;typedef struct Hangxian{//创建一个含有六个信息的结构体 char hangbanhao[15];//航班号- char feijihao[15];//飞机号 int feixingriqi;//起飞时间 int chenkerenshu;//座位数 int yupiao;//余票 char zhongdianzhai[15];//降落城市 struct Hangxian *next;//指向下一个链结点的指针 struct Yidingkehu *yiding;//定义一个指向已订票客户的头结点指针 struct Weidingkehu *yudingqueue;}Hangxian,*Linklist;Linklist InitLinklist();//01int InsertLinklist(Linklist &head1);//02void hbhchaxun();//通过航班号查询void mddchaxun();//通过目的地查询void lurugongneng();//初始化录入功能void chaxungongnen();//查询功能void dingpiaogongnen();//订票功能void tuipiaogongnen();//退票功能void main(){ int n; do{ //打印主界面 printf("\t 欢迎使用航空客运订票系统\n"); printf("\t+++++++++++++++++++++++++++++\n"); printf("\t==>1. 录入功能 ==\n"); printf("\t==>2. 查询功能 ==\n"); printf("\t==>3. 订票功能 ==\n"); printf("\t==>4. 退票功能 ==\n"); printf("\t==>5. 退出 ==\n"); printf("\t+++++++++++++++++++++++++++++\n"); printf("\t请选择:"); scanf("%d",&n);printf("\n"); switch(n) { case 1: lurugongneng();//录入功能 break; case 2: chaxungongnen();//查询功能 break; case 3: dingpiaogongnen();//订票功能 break; case 4:tuipiaogongnen();//退票功能 break; default :exit(0);//退出 } }while(n==1||n==2||n==3||n==4);}void lurugongneng()//初始化的单链表*********************************************************录入功能{ Linklist p; //int m,n; if(!p) exit(OVERFLOW); printf("\t请依次输入下面几项内容:\n\n");//这里的输入采用一个个单独输入,避免了乱赋值的现象 printf("航班号\n"); gets(p->hangbanhao);//这里的二个gets主要是因为在回车键的输入,其中的第一个是来接收上次的回车 gets(p->hangbanhao); printf("飞机号\n"); gets(p->feijihao); printf("终点站\n"); gets(p->zhongdianzhai); printf("飞行日期\n"); scanf("%d",&p->feixingriqi); printf("乘客总数\n"); scanf("%d",&p->chenkerenshu); printf("余票数\n"); scanf("%d",&p->yupiao); }void chaxungongnen()//******************************************************************查询功能{ int n; printf("\t 查 找 航 线 信 息 \n"); printf("\t+++++++++++++++++++++++++++++\n"); printf("\t==>1. 通过目的地查询 ==\n"); printf("\t==>2. 通过航班号查询 ==\n"); printf("\t+++++++++++++++++++++++++++++\n"); printf("\t请选择:"); scanf("%d",&n); printf("\n");//格式化 switch(n) { case 1:mddchaxun(); break; case 2:hbhchaxun(); break; default :break; }}void mddchaxun()//通过目的地查询{ char c[15]; int m; Linklist p=L; printf("\t请输入要查询的目的地:"); gets(c); gets(c);//原因同上 do{ p=p->next; if(p) { m=strcmpi((*p).zhongdianzhai,c);//如果==的话则m=0; if(m==0) { printf("\t航班信息:\n"); printf("\t航班号:%s\n",p->hangbanhao); printf("\t飞机号:%s\n",p->feijihao); printf("\t飞行时间:周%d\n",p->feixingriqi); printf("\t余票量:%d\n",p->yupiao); } } else {//如果不匹配的话就做 printf("\t对不起没有你要找的目的地:\n\n"); m=0; } }while(m!=0);}void hbhchaxun()//通过目的地查询{ char c[15]; int m; Linklist p=L; printf("\t请输入要查询的航班号:"); gets(c); gets(c);printf("\n"); do{ p=p->next; if(p) { m=strcmpi((*p).hangbanhao,c);//如果==的话则m=0;这里的(*p).与p->的作用是一样的 if(m==0) { printf("\t航班信息:\n"); printf("\t航班号:%s\n",p->hangbanhao); printf("\t飞机号:%s\n",p->feijihao); printf("\t飞行时间:周%d\n",p->feixingriqi); printf("\t余票量:%d\n\n",p->yupiao); } } else {//如果不匹配的话就做 printf("\t对不起没有你要找的航班号:\n"); m=0; } }while(m!=0);}void dingpiaogongnen()//***************************************************************订票功能{ char c[15]; int m=1,piao,ydpiao=0,yd=0,n;// gets(c); printf("请输入终点站名:"); gets(c); printf("\n"); p=L->next; if(p) { do{//查找一下,是否有这个航班 if(!p) { printf("对不起,没有你要找的航班:\n\n"); goto loop1; } m=strcmpi(p->zhongdianzhai,c); if(m==0) { printf("航班信息:\n"); printf("航班号:%s\n",p->hangbanhao); printf("飞机号:%s\n",p->feijihao); printf("飞行时间:周%d\n",p->feixingriqi); printf("余票量:%d\n",p->yupiao);} else p=p->next; }while(m!=0); if(m==0) { do{ printf("\n请输入你要订的票数:"); scanf("%d",&piao); if(piao<=p->yupiao) { h=p->yiding; if(h) { h1=h; h=h->next1; h=(struct Yidingkehu*)malloc(sizeof(Yidingkehu)); printf("请输入你的名字:"); gets(h->name);gets(h->name); h->dingpiaoshu=piao; h->next1=h1->next1; h1->next1=h; p->yupiao=p->yupiao-piao; printf("订票成功:\n"); m=2; } } else { printf("余票量:%d\n",p->yupiao); printf("对不起,余票 %d 张不足,不能完成订票\n\n",p->yupiao); printf(" 是否要重新订票?\n"); printf("需要请输入1 否则请按2 预订请输入3 : "); scanf("%d",&m); printf("\n"); if(m==3) goto loop3; } }while(m==1); } } else if(!p) {loop3: struct Weidingkehu *q3;printf("对不起,该航班的票已售完\n");>yudingqueue;if() printf("没有人预订票,是否要预订?\n");else if(!=) printf("已有人预订票,是否要预订?\n");printf("预订请输入1 否则输入2 : ");scanf("%d",&n);printf("\n");if(n==1){ printf("请输入你的姓名"); gets(q3->name); gets(q3->name);//q3不能指向name??? printf("请输入订票数"); scanf("%d",&q3->yudingpiao); q3->next2=NULL; >next2=q3; ; printf(" 你已经预订了 !\n");} }loop1:;}void tuipiaogongnen()//***************************************************************退票功能{ }以上回答你满意么?

81 评论

阿迪思念

Summary With computer development, popularization that computer apply in business administration at full speed of technology. If you want to raise labour productivity, lower costs, improve the service quality and management level, promote the economic benefits, must carry on the modernized information management through the computer, this is likewise important in management to airline's ticketing service. This system combines the course of booking tickets of airline, through real demand analysis, adopt powerful JSP and Microsoft Access as the developing instrument, the system that develop the aircarrier aircraft to book tickets. This system proceeds from easy and simple to handle requirement with friendly, flexible, practical, safe boundary plane, finish the whole course of management, including functions such as course information management, customer's information management, ticketing service information management,etc. of booking tickets in the necessary airline. This text has explained especially the development of this system realizes the course, demand analysis, the scheme is proved, module design, design of storehouse of the data, designing links to all carry on exhaustive analysis and description in detail to the system at the same time.

130 评论

LiangJin0727

毕业设计论文是毕业设计工作的总结和提高,和做科研开发工作一样,要有严谨求实的科学态度。毕业设计论文应有一定的学术价值和实用价值,能反映出作者所具有的专业基础知识和分析解决问题的能力。 在毕业设计期间,尽可能多的阅读文献资料是很重要的,一方面是为毕业设计做技术准备,另一方面是学习论文的写作方法。一篇优秀的论文对启发我们的思维,掌握论文的写作规范很有帮助。 论文的写作方法是多种多样的,并没有一个固定的格式,下面仅对论文中的几个主要部分的写作方法提出一点参考性的意见。 一、前言部分 前言部分也常用“引论”、“概论”、“问题背景”等做标题,在这部分中,主要介绍论文的选题。 首先要阐明选题的背景和选题的意义。选题需强调实际背景,说明在计算机研究中或部门信息化建设、管理现代化等工作中引发该问题的原因,问题出现的环境和条件,解决该问题后能起什么作用。结合问题背景的阐述,要使读者感受到此选题确有实用价值和学术价值,确有研究或开发的必要性。 前言部分常起到画龙点睛的作用。选题实际又有新意,意味着你的研究或开发方向对头,设计工作有价值。对一篇论文来说,前言写好了,就会吸引读者,使他们对你的选题感兴趣,愿意进一步了解你的工作成果。 二、综述部分 任何一个课题的研究或开发都是有学科基础或技术基础的。综述部分主要阐述选题在相应学科领域中的发展进程和研究方向,特别是近年来的发展趋势和最新成果。通过与中外研究成果的比较和评论,说明自己的选题是符合当前的研究方向并有所进展,或采用了当前的最新技术并有所改进,目的是使读者进一步了解选题的意义。综述部分能反映出毕业设计学生多方面的能力。首先,反映中外文献的阅读能力。通过查阅文献资料,了解同行的研究水平,在工作中和论文中有效地运用文献,这不仅能避免简单的重复研究,而且也能使研究开发工作有一个高起点。 其次,还能反映出综合分析的能力。从大量的文献中找到可以借鉴和参考的,这不仅要有一定的专业知识水平,还要有一定的综合能力。对同行研究成果是否能抓住要点,优缺点的评述是否符合实际,恰到好处,这和一个人的分析理解能力是有关的。 值得注意的是,要做好一篇毕业论文,必须阅读一定量(2~3篇)的近期外文资料,这不仅反映自己的外文阅读能力,而且有助于论文的先进性。 三、方案论证 在明确了所要解决的问题和文献综述后,很自然地就要提出自己解决问题的思路和方案。在写作方法上,一是要通过比较显示自己方案的价值,二是让读者了解方案的创新之处或有新意的思路、算法和关键技术。 在与文献资料中的方案进行比较时,首先要阐述自己的设计方案,说明为什么要选择或设计这样的方案,前面评述的优点在此方案中如何体现,不足之处又是如何得到了克服,最后完成的工作能达到什么性能水平,有什么创新之处(或有新意)。如果自己的题目是总方案的一部分,要明确说明自己承担的部分,及对整个任务的贡献。详细资料来自

293 评论

相关问答

  • 飞机维修研究论文

    随着国际民航事业的发展,我国民航事业也在稳步扩大和飞速的提升,航空公司所起的作用日益重要。下文是我为大家整理的关于航空公司有关论文优秀 范文 的内容,欢迎大

    stella1135 3人参与回答 2023-12-07
  • 歼七飞机故障研究论文

    根据央视军事消息报道,一架歼7战斗机在训练的时候失事,坠落在湖北襄阳处的一个村庄,导致部分民房受损,同时这起私事也造成两人受伤一人死亡的悲惨事故。索性的是飞行员

    张大羊羊 5人参与回答 2023-12-11
  • 关于研究纸飞机的论文

    1、你可以亲自动手制作几个各种类型的纸飞机,试飞一下,做一个比对数据。2、在网络上找一些关于纸飞机的论文。3、在论文里找一你需要内容,粘贴出来。4、加上你做实验

    天骄建材 1人参与回答 2023-12-06
  • 民用飞机发展研究毕业论文

    根据我搜集的一些网站来看,建议看看这个,要做毕业论文以及毕业设计的,推荐一个网站 ,里面的毕业设计什么的全是优秀的,因为精挑细选的,网上很少有,都是相当不错的

    小笨猪seven 3人参与回答 2023-12-07
  • 股票交易机制研究论文

    股票市场财富分析论文参考文献 无论是在学习还是在工作中,大家都跟论文打过交道吧,通过论文写作可以提高我们综合运用所学知识的能力。那么你有了解过论文吗?下面是我为

    dapangduola 3人参与回答 2023-12-06