?? fiy.h
字號(hào):
//頭文件fiy
#include <iostream>
#include <string>
using namespace std;
#define LEN sizeof(listlvke)
#define plane_seat 5//每架飛機(jī)5張票
int k; //每天的航班數(shù)
int n; //已售票數(shù)
int i=0; //返回訂票旅客鏈表的長(zhǎng)度
int m;//候票人所需票數(shù)
int waitplane;//候票人所需航班
bool b=0; //判斷是否有人候票
bool csh=0; //判斷航班是否已進(jìn)行初始化
struct lvke
{
string name;
int plane;
string date;
};
typedef struct listlvke
{
lvke data;
listlvke *next;
}listlvke;
listlvke *head,*pl;
struct wait
{
string name;
long phone;
int plane;
int piao;
string date;
};
typedef struct Qwait
{
wait data;
Qwait *next;
}Qwait;
Qwait *p,*front,*rear;
struct Allfly
{int plane;//航班號(hào)
int seat;//座位數(shù)
int yupiao;
string endfly;//終點(diǎn)站
string date;//起航時(shí)間
}fly[5];
void dingpiao();//訂票
void list_menu();//菜單
void ifwait(); //是否候票
void find(); //查詢指定航班的航班信息及剩余座位數(shù)
void findfly(); //瀏覽某個(gè)航班所有信息(包括find()信息,乘客,后票人)
void Show_wait();//瀏覽等待機(jī)票的旅客信息
void show_lvke();//瀏覽指定航班的所有旅客信息
void choose();// 選擇操作
void Createlistlvke();
void tuipiao();
void askwait();
void banben();
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -