?? flight.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 + -