⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flight.h

📁 民航机票预订系统 结合MFC界面编程 具有订票、退票
💻 H
字号:
// Flight.h: interface for the CFlight class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLIGHT_H__D9B85FEA_4889_4AA2_949C_C9C6520BC9E9__INCLUDED_)
#define AFX_FLIGHT_H__D9B85FEA_4889_4AA2_949C_C9C6520BC9E9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#include "Keshe_flightView.h"

#define OK 1
#define ERROR 0
typedef struct airline{
        char air_num[8];//航班号
        char plane_num[8];//飞机号
        char end_place[20];//终点站
        int  total;//座位总数
        int  left;//剩余座位数
        struct airline *next;
}airline;
typedef struct customer{
        char name[8];
        char air_num[8];
        int  seat_num;
        struct customer *next;
}customer;

class CFlight  
{
public:
	CFlight();
	virtual ~CFlight();
	airline *start_air();
	customer *start_cus();
	airline *modefy_airline(airline *l,char *air_num);
	int insert_air(airline **p,char *air_num,char *plane_num,char *end_place,int total,int left);
	int  insert_cus(customer **p,char *name,char *air_num,int seat_num);
	int book(airline *a,char *air_num,customer *c,char *name);
	int del_cus(customer *c,airline *l,char *name);
	int search_one_cus(customer *c,char *cus_name,customer *p);
	int creat_air(airline **l);
	int creat_cus(customer **l);
    //CKeshe_flightView m_n;
};

#endif // !defined(AFX_FLIGHT_H__D9B85FEA_4889_4AA2_949C_C9C6520BC9E9__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -