bianliang.h

来自「飞机票的预定系统」· C头文件 代码 · 共 56 行

H
56
字号
#include<stdio.h>
#include <conio.h>
#include <string.h>

#ifndef _bianliang_h
#define _bianliang_h
void system();
//////////////////////////////////////////////////

typedef struct{
	int year;			//年
	int month;			//月
	int day;			//日
}date;				//定义日期

//////////////////////////////////////////////////
typedef struct{
	int hour;			//小时
	int minute;			//分钟
}time;				//定义时间
//////////////////////////////////////////////////

typedef struct{
	char name[10];		//姓名
	char pwd[7];		//密码
	int state;			//状态(是否管理员)(0是,1不是)
	int record;			//是否处于登陆中(1是,0不是)
	int first;			//是否首次登陆(1是)
}emploe;			//定义员工信息

//////////////////////////////////////////////////

typedef struct{
	char name[10];		//姓名
	int age;			//年龄
	int sex;			//性别
	char telphone[12];	//联系电话
	char start[10];		//出发地
	char finish[10];	//目的地
	long int sn;		//系列号
	int club;			//级别(是否会员)
}passenger;			//定义乘客信息

//////////////////////////////////////////////////

typedef struct{
	char num[5];		//飞机序号
	char start[10];		//出发地
	char finish[10];	//目的地
	date day;			//起飞日期
	time hour;			//起飞时间
	int count;			//机票数量
	int money;			//票价
}airplane;			//定义飞机信息	

#endif

⌨️ 快捷键说明

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