航空客运订票系统.cpp

来自「航空客运订票的业务活动包括:查询航线、客票预订和办理退票等。航空客运订票系统」· C++ 代码 · 共 34 行

CPP
34
字号
// 航空客运订票系统.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream.h"
#include "HK.h"

void main()
{
	int i;
	int n;
	char c='y';
	Sqlist L;  //航线用顺序表存储
	cout<<"========================================="<<endl;
	cout<<"建立航空客运订票系统"<<endl;
    cout<<"输入此飞机场的航线数"<<endl;
	cin>>n;
	for(i=1;i<=n;i++)
	  CreateRoutes(i,L);
	L.lenght=n; //记录航线数
	cout<<"Good! 建立好了航空客运订票系统"<<endl;
	cout<<"========================================="<<endl;
	cout<<"*******************************"<<endl;
	cout<<"菜单选择项"<<endl;
	cout<<"1: 查询航线的信息"<<endl;
	cout<<"2: 办理订票业务"<<endl;
	cout<<"3: 办理退票业务"<<endl;
	cout<<"0: 退出系统"<<endl;
	cout<<"*******************************"<<endl;

	Menu_select(L);

}

⌨️ 快捷键说明

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