【文件属性】:
文件名称:c++航班订票程序,请多指教
文件大小:10KB
文件格式:TXT
更新时间:2012-11-03 05:55:23
c++
#include
#include
#include
#include
#define m 4 //3架飞机
#define n 5 //每架飞机5张票
struct node
{
char name[21];
char id[21];
int seat,plane,date;
node *next,*pre;
};
struct wait
{
char name[21];
char id[21];
char phone[8];
int seat,plane,date,count;
wait *next,*pre;
};
struct piao
{
int seat[n+1];
};
void makenull();
void makenull_piao();
void makenull_information();
void list_menu();
void list_piao();
void makenull_wait();
void list_information();
void plane_information(node *head);
void book();
void add_information(node *head,int x,int y);
void add_wait(int x,int y);
void search_delete(int x);
void write_to_file();
void show_wait();
bool comp(node *x,node*y);