【簡(jiǎn)介:】本篇文章給大家談?wù)劇讹w機(jī)票預(yù)訂系統(tǒng)數(shù)據(jù)流圖0層,1層》對(duì)應(yīng)的知識(shí)點(diǎn),希望對(duì)各位有所幫助。本文目錄一覽:
1、高鐵飛機(jī)票哪個(gè)軟件好?
2、怎么網(wǎng)上預(yù)訂飛機(jī)票
3、飛機(jī)訂票系
本篇文章給大家談?wù)劇讹w機(jī)票預(yù)訂系統(tǒng)數(shù)據(jù)流圖0層,1層》對(duì)應(yīng)的知識(shí)點(diǎn),希望對(duì)各位有所幫助。
本文目錄一覽:
- 1、高鐵飛機(jī)票哪個(gè)軟件好?
- 2、怎么網(wǎng)上預(yù)訂飛機(jī)票
- 3、飛機(jī)訂票系統(tǒng)
- 4、網(wǎng)上訂飛機(jī)票怎么訂
- 5、求用c#做的飛機(jī)票訂購(gòu)系統(tǒng)
- 6、飛機(jī)訂票系統(tǒng)設(shè)計(jì)
高鐵飛機(jī)票哪個(gè)軟件好?
訂票軟件推薦:航班管家、飛豬、中國(guó)國(guó)航、去哪兒旅行、攜程旅行等
1、航班管家:航班管家的機(jī)票價(jià)格透明,還有諸多優(yōu)惠活動(dòng)、優(yōu)質(zhì)特價(jià)機(jī)票推薦,值機(jī)功能太方便了。航班管家的航空延誤提醒,是由空管總局支持的,內(nèi)含在線值機(jī)、航班動(dòng)態(tài)查詢、機(jī)票酒店預(yù)訂等諸多功能,經(jīng)濟(jì)艙的價(jià)格,頭等艙的服務(wù)。
2、飛豬:飛豬是一款性價(jià)比很高的旅行APP,是阿里巴巴旗下的,有著優(yōu)惠、便捷、高性價(jià)比的出行服務(wù),還有著按照航空公司標(biāo)準(zhǔn)進(jìn)行退改簽的服務(wù)。訂票很方便,預(yù)約不用加錢(qián),不要手續(xù)費(fèi),每次都能搶到票,機(jī)票火車(chē)票就認(rèn)準(zhǔn)飛豬了。3、中國(guó)國(guó)航:中國(guó)國(guó)航是中國(guó)唯一的載旗航空公司推出的APP,覆蓋31個(gè)國(guó)家和地區(qū),不管在哪買(mǎi)的國(guó)航客票,都可以在APP內(nèi)查看行程。購(gòu)票值機(jī)選座都很方便,速度很快,不卡,算是航空公司里的佼佼者了,就是有時(shí)候優(yōu)惠力度不太大。
4、去哪兒旅行:去哪兒旅行上有非常多的資訊和商家,還有優(yōu)惠活動(dòng),酒店預(yù)訂,景點(diǎn)門(mén)票購(gòu)買(mǎi),旅行團(tuán)報(bào)名等APP內(nèi)又能夠操作。搶票挺好用,訂房搶票訂機(jī)票每次都服務(wù)很周到,訂購(gòu)酒店賓館價(jià)位合算,機(jī)票和接送車(chē)也便宜。
5、攜程旅行:攜程旅行提供機(jī)票,火車(chē)票訂購(gòu),酒店預(yù)訂,門(mén)票購(gòu)買(mǎi),旅行攻略等服務(wù),在國(guó)外設(shè)置了服務(wù)點(diǎn),專門(mén)為自由行的旅客服務(wù)。攜程上能夠?qū)崟r(shí)更新低價(jià)機(jī)票,可以省下很多機(jī)票錢(qián),搶票給力,現(xiàn)在機(jī)票酒店火車(chē)票都用攜程了。
怎么網(wǎng)上預(yù)訂飛機(jī)票
網(wǎng)上訂飛機(jī)票的操作方法如下:
1、打開(kāi)去哪網(wǎng),在菜單項(xiàng)選擇機(jī)票。
2、輸入所要出發(fā)的日期、起始地、目的地、單程還是往返等信息,進(jìn)行搜索。
3、搜索之后,會(huì)展示一天中不同的時(shí)間段和機(jī)票的價(jià)格,選擇適合自己的行程進(jìn)行購(gòu)買(mǎi)。
4、點(diǎn)擊購(gòu)買(mǎi)后,填入購(gòu)買(mǎi)人的相關(guān)信息,提交訂單。
5、最后,選擇付款方式,付款完成后,機(jī)票購(gòu)買(mǎi)成功。
飛機(jī)訂票系統(tǒng)
#includestdio.h
#includeconio.h
#includestring.h
#includestdlib.h
#define OK 1
#define ERROR 0
#define PR printf
#define NULL 0
int N=10;
typedef struct customer
{
char name[9];
int seat_num;
int left;
struct customer *next;
}customer;
customer *creat_customer()//初始化鏈表
{
customer *l;
l=(customer *)malloc(sizeof(customer));
if(l==NULL)
{
exit(0);
}
l-next=NULL;
return l;
}
int insert_customer(customer **p,char *name,int seat,int left)
{//customer鏈表插入操作
customer *q;
q=(customer*)malloc(sizeof(customer));
strcpy(q-name , name);
q-seat_num =seat;
q-left=left;
q-next=NULL;
(*p)-next=q;
(*p)=(*p)-next;
return OK;
}
int delete_cus(customer *h,char *name)//顧客退票
{
customer *p,*pr;
pr=h;
p=pr-next ;
while(p!=NULL)
{
if(strcmp(name,p-name )==0)
{
pr-next =p-next ;
PR("顧客 %s 退票成功!\n",p-name );
return OK;
}
pr=pr-next ;
p=pr-next ;
}
PR("無(wú)此顧客,無(wú)法退票!\n");
return ERROR;
}
int save_customer (customer*l)//保存顧客信息
{
FILE *fp_customer;
customer *p=l-next;
char filename[]="c:\\customer.dat";
if((fp_customer=fopen(filename,"wb"))==NULL)
{
printf("can not open file to write:%s\n",filename);
return ERROR;
}
for(;p!=NULL;p=p-next)
{
fprintf(fp_customer,"%s,%d%",p-name,p-seat_num);
}
fclose(fp_customer);
return OK;
}
int book(customer *c,char *name)//訂票函數(shù)
{
customer *q=c-next ;
for(;q-next !=NULL;q=q-next){}
{
if(q-left 0)
{
PR("恭喜您!訂票成功!\n");
PR("你的座位號(hào)是: %d\n",(N-q-left +1));
insert_customer(q,name,N -q-left +1,q-left);
q-left --;
return OK;
}
else PR("對(duì)不起,座位已滿!\n");
return 0;
}
}
int print_customer(customer*l)//打印顧客信息
{
customer *p=l-next;
for(;p!=NULL;p=p-next)
{
PR("%10s %d\n",p-name,p-seat_num);
}
return OK;
}
void main()
{
char choice,name[9];
int t=1;
customer *cus=creat_customer();
customer *l = creat_customer();
while(t==1)
{
PR("*----------------------------*\n");
PR("*--航空訂票系統(tǒng)選擇菜單------*\n");
PR("* 訂票-------0 *\n");
PR("* 退票-------1 *\n");
PR("* 查詢-------2 *\n");
PR("* 退出-------5 *\n");
PR("*----------------------------*\n");
PR("請(qǐng)選擇: ");
choice = getch();
PR("%c\n",choice);
if(choice=='0')
{
PR("請(qǐng)輸入你的姓名: ");
scanf( "%s",name);
book(cus,name);
save_customer(cus);
}
else if(choice=='1')
{
PR("\n請(qǐng)輸入你的姓名: ");
scanf( "%s",name);
delete_cus(cus,name);
save_customer(cus);
}
else if(choice=='2')
{
customer *p=l-next;
if(l!=NULL)
do
{
PR("%ld%5.1f\n",p-name,p-seat_num);
p=p-next;
}while(p!=NULL);
}
else if(choice=='3')
{
PR("byb");
t=0;
}
else
{
PR("error\n");
}
}
getch();
}
網(wǎng)上訂飛機(jī)票怎么訂
高效出行,飛機(jī)票價(jià)位也已被大眾接受。畢竟省時(shí)又不貴。購(gòu)票也方便。像微信,支付寶啊,攜程啊,同程啊都可以預(yù)定的。這里我介紹一下用飛豬app購(gòu)買(mǎi)的流程。因?yàn)槭状蜗螺d會(huì)送抵金券。其實(shí)微信,支付寶都很方便啦。
身份信息
操作方法
01
打開(kāi)app,沒(méi)有的可以下載一個(gè)。微信支付寶的大體步驟基本相通。
02
點(diǎn)擊飛機(jī)票。輸出發(fā)地和目的地,以及出行日期。開(kāi)始搜索。
03
選擇方便時(shí)間的航班。點(diǎn)擊,可預(yù)訂頭等艙,經(jīng)濟(jì)艙。
04
輸入個(gè)人信息,去付款。
05
系統(tǒng)會(huì)提示你訂票成功。保留該信息。
06
出行前24小時(shí)內(nèi),需要在網(wǎng)上值機(jī)。也就是我們通常說(shuō)的選座。
07
出行前兩小時(shí)拿購(gòu)票證件到機(jī)場(chǎng)領(lǐng)取登機(jī)牌辦理登機(jī)手續(xù)。因?yàn)闄z票相對(duì)繁瑣,建議至少提前一小時(shí)到機(jī)場(chǎng)。登機(jī)牌上都有登記口信息。找到登機(jī)口,等待登機(jī)就可以了。
特別提示
乘坐飛機(jī)時(shí),請(qǐng)關(guān)閉手機(jī)。也不要用充電寶之類(lèi)的給手機(jī)充電。雖然不一定會(huì)發(fā)生事故,但請(qǐng)尊重全機(jī)人民的生命安全,做個(gè)有素質(zhì)的人。
網(wǎng)上訂的機(jī)票,可以到機(jī)場(chǎng)大廳內(nèi),找到對(duì)應(yīng)航班的航空公司服務(wù)臺(tái)。在服務(wù)臺(tái)旁邊就有自助取票機(jī),可供自助取票。如果使用的是臨時(shí)身份證,那就不具備刷證功能,只能去人工窗口取票
求用c#做的飛機(jī)票訂購(gòu)系統(tǒng)
新鮮出爐的源碼:using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace feijipiaoyuding
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (this.comboBox1.Text == this.comboBox2.Text)
{
MessageBox.Show("始發(fā)地和目的地不能相同!");
}
else
{
string str = (this.checkBox1.Checked) ? "嬰兒看護(hù):" : "無(wú)";
MessageBox.Show("票號(hào):" + this.textBox1.Text + "\r\n"
+ "乘客名稱:" + this.textBox2.Text + "\r\n"
+ "護(hù)照號(hào):" + this.textBox3.Text + "\r\n"
+ "始發(fā)地:" + this.comboBox1.Text + "\r\n"
+ "目的地:" + this.comboBox2.Text + "\r\n"
+ "飛行時(shí)間:" + this.dateTimePicker1 .Text + "\r\n"
+ "等級(jí):" + this.comboBox1.Text + "\r\n"
+ "服務(wù)內(nèi)容:" + str);
}
}
private void button2_Click(object sender, EventArgs e)
{
this.textBox1.Text = "";
this.textBox2.Text = "";
this.textBox3.Text = "";
this.comboBox1.SelectedIndex = -1;
this.comboBox2.SelectedIndex = -1;
this.comboBox3.SelectedIndex = -1;
this.checkBox1.Checked = false;
}
}
}
飛機(jī)訂票系統(tǒng)設(shè)計(jì)
#include stdio.h
#include string.h
#include conio.h
#include ctype.h
#include stdlib.h
#include malloc.h
#include math.h//overflow
#define ok 1
typedef struct Yidingkehu
{//單鏈表
char name[15];//已訂票的客戶姓名
int dingpiaoshu;//已訂票數(shù)量
struct Yidingkehu *next1;//
}Yidingkehu,*Link;
typedef struct Weidingkehu
{//單鏈隊(duì)
char name[15];//預(yù)訂票的客戶姓名
int yudingpiao;// 要訂票數(shù)量
struct Weidingkehu *next2;//下一個(gè)鏈隊(duì)結(jié)點(diǎn)指針
}Weidingkehu,*Qptr;
typedef struct Hangxian
{//創(chuàng)建一個(gè)含有六個(gè)信息的結(jié)構(gòu)體
char hangbanhao[15];//航班號(hào)-
char feijihao[15];//飛機(jī)號(hào)
int feixingriqi;//起飛時(shí)間
int chenkerenshu;//座位數(shù)
int yupiao;//余票
char zhongdianzhai[15];//降落城市
struct Hangxian *next;//指向下一個(gè)鏈結(jié)點(diǎn)的指針
struct Yidingkehu *yiding;//定義一個(gè)指向已訂票客戶的頭結(jié)點(diǎn)指針
struct Weidingkehu *yudingqueue;
}Hangxian,*Linklist;
Linklist InitLinklist();//01
int InsertLinklist(Linklist head1);//02
void hbhchaxun();//通過(guò)航班號(hào)查詢
void mddchaxun();//通過(guò)目的地查詢
void lurugongneng();//初始化錄入功能
void chaxungongnen();//查詢功能
void dingpiaogongnen();//訂票功能
void tuipiaogongnen();//退票功能
void main()
{
int n;
do{ //打印主界面
printf("\t 歡迎使用航空客運(yùn)訂票系統(tǒng)\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請(qǐng)選擇:");
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請(qǐng)依次輸入下面幾項(xiàng)內(nèi)容:\n\n");//這里的輸入采用一個(gè)個(gè)單獨(dú)輸入,避免了亂賦值的現(xiàn)象
printf("航班號(hào)\n");
gets(p-hangbanhao);//這里的二個(gè)gets主要是因?yàn)樵诨剀?chē)鍵的輸入,其中的第一個(gè)是來(lái)接收上次的回車(chē)
gets(p-hangbanhao);
printf("飛機(jī)號(hào)\n");
gets(p-feijihao);
printf("終點(diǎn)站\n");
gets(p-zhongdianzhai);
printf("飛行日期\n");
scanf("%d",p-feixingriqi);
printf("乘客總數(shù)\n");
scanf("%d",p-chenkerenshu);
printf("余票數(shù)\n");
scanf("%d",p-yupiao);
}
void chaxungongnen()//******************************************************************查詢功能
{
int n;
printf("\t 查 找 航 線 信 息 \n");
printf("\t+++++++++++++++++++++++++++++\n");
printf("\t==1. 通過(guò)目的地查詢 ==\n");
printf("\t==2. 通過(guò)航班號(hào)查詢 ==\n");
printf("\t+++++++++++++++++++++++++++++\n");
printf("\t請(qǐng)選擇:");
scanf("%d",n);
printf("\n");//格式化
switch(n)
{
case 1:mddchaxun();
break;
case 2:hbhchaxun();
break;
default :break;
}
}
void mddchaxun()//通過(guò)目的地查詢
{
char c[15];
int m;
Linklist p=L;
printf("\t請(qǐng)輸入要查詢的目的地:");
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航班號(hào):%s\n",p-hangbanhao);
printf("\t飛機(jī)號(hào):%s\n",p-feijihao);
printf("\t飛行時(shí)間:周%d\n",p-feixingriqi);
printf("\t余票量:%d\n",p-yupiao);
}
}
else
{//如果不匹配的話就做
printf("\t對(duì)不起沒(méi)有你要找的目的地:\n\n"); m=0;
}
}while(m!=0);
}
void hbhchaxun()//通過(guò)目的地查詢
{
char c[15];
int m;
Linklist p=L;
printf("\t請(qǐng)輸入要查詢的航班號(hào):");
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航班號(hào):%s\n",p-hangbanhao);
printf("\t飛機(jī)號(hào):%s\n",p-feijihao);
printf("\t飛行時(shí)間:周%d\n",p-feixingriqi);
printf("\t余票量:%d\n\n",p-yupiao);
}
}
else
{//如果不匹配的話就做
printf("\t對(duì)不起沒(méi)有你要找的航班號(hào):\n"); m=0;
}
}while(m!=0);
}
void dingpiaogongnen()//***************************************************************訂票功能
{
char c[15];
int m=1,piao,ydpiao=0,yd=0,n;//
gets(c);
printf("請(qǐng)輸入終點(diǎn)站名:"); gets(c); printf("\n");
p=L-next;
if(p) {
do{//查找一下,是否有這個(gè)航班
if(!p)
{
printf("對(duì)不起,沒(méi)有你要找的航班:\n\n");
goto loop1;
}
m=strcmpi(p-zhongdianzhai,c);
if(m==0)
{
printf("航班信息:\n");
printf("航班號(hào):%s\n",p-hangbanhao);
printf("飛機(jī)號(hào):%s\n",p-feijihao);
printf("飛行時(shí)間:周%d\n",p-feixingriqi);
printf("余票量:%d\n",p-yupiao);}
else p=p-next;
}while(m!=0);
if(m==0)
{
do{
printf("\n請(qǐng)輸入你要訂的票數(shù):"); scanf("%d",piao);
if(piao=p-yupiao)
{
h=p-yiding;
if(h)
{
h1=h;
h=h-next1;
h=(struct Yidingkehu*)malloc(sizeof(Yidingkehu));
printf("請(qǐng)輸入你的名字:");
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("對(duì)不起,余票 %d 張不足,不能完成訂票\n\n",p-yupiao);
printf(" 是否要重新訂票?\n");
printf("需要請(qǐng)輸入1 否則請(qǐng)按2 預(yù)訂請(qǐng)輸入3 : ");
scanf("%d",m);
printf("\n");
if(m==3) goto loop3;
}
}while(m==1);
}
}
else if(!p)
{
loop3: struct Weidingkehu *q3;
printf("對(duì)不起,該航班的票已售完\n");
q.front=p-yudingqueue;
if(q.front==q.rear) printf("沒(méi)有人預(yù)訂票,是否要預(yù)訂?\n");
else if(q.front!=q.rear) printf("已有人預(yù)訂票,是否要預(yù)訂?\n");
printf("預(yù)訂請(qǐng)輸入1 否則輸入2 : ");
scanf("%d",n);
printf("\n");
if(n==1)
{
printf("請(qǐng)輸入你的姓名"); gets(q3-name); gets(q3-name);//q3不能指向name???
printf("請(qǐng)輸入訂票數(shù)"); scanf("%d",q3-yudingpiao);
q3-next2=NULL;
q.rear-next2=q3;
q.rear=q3;
printf(" 你已經(jīng)預(yù)訂了 !\n");
}
}
loop1:;
}
void tuipiaogongnen()//***************************************************************退票功能
{
}
以上回答你滿意么?
關(guān)于《飛機(jī)票預(yù)訂系統(tǒng)數(shù)據(jù)流圖0層,1層》的介紹到此就結(jié)束了。