当前位置:网站首页>Automatic reservation of air tickets in C language
Automatic reservation of air tickets in C language
2022-07-06 18:16:00 【_ Programming_】
C Language automatic reservation of air tickets
2. Automatic reservation of air tickets ( difficulty 2)
Suppose that the civil aviation company has an automatic reservation system . In this system, there is a passenger table represented by a one-way linked list , The nodes in the following table are linked in alphabetical order by the passenger's surname . for example , Here is a passenger table for a certain time . The design program completes the following functions .
Serial number data link rlink
1 lu 6 5
2 chan 4 9
3 wang 5 7
4 bao 0 2
5 mai 1 3
6 dong 8 1
7 xi 3 0
8 deng 9 6
9 cuang 2 8
1) Create a static two-way linked list L;
2) Enter the record in the table ;
3) Output all records in the table ;
4) If any passenger wants to book a ticket, the corresponding record will be added ;
5) When a passenger wants to refund his ticket, delete the corresponding record ;
6) There are reasonable hints , Each function can set up a menu , According to the prompt , Can complete relevant functional requirements .
Tips :
Static bidirectional linked list structure definition :
typedef struct node
{ char data[maxsize];// full name ,maxsize Is the maximum length of the user name that can be reached
int link,rlink; // Forward direction 、 Backward chain , Its value is the subscript value of the passenger array
}unode;
unode user[max]; //max Is the maximum number of customers that can be reached
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
边栏推荐
- node の SQLite
- The easycvr authorization expiration page cannot be logged in. How to solve it?
- Jerry is the custom background specified by the currently used dial enable [chapter]
- 【.NET CORE】 请求长度过长报错解决方案
- 2022 Summer Project Training (III)
- I want to say more about this communication failure
- OpenEuler 会长久吗
- Recursive way
- SAP Fiori 应用索引大全工具和 SAP Fiori Tools 的使用介绍
- 78 year old professor Huake has been chasing dreams for 40 years, and the domestic database reaches dreams to sprint for IPO
猜你喜欢

虚拟机VirtualBox和Vagrant安装

传输层 拥塞控制-慢开始和拥塞避免 快重传 快恢复

Getting started with pytest ----- test case rules

2019阿里集群数据集使用总结

Pourquoi Li shufu a - t - il construit son téléphone portable?

Transport layer congestion control - slow start and congestion avoidance, fast retransmission, fast recovery

Maixll-Dock 摄像头使用

std::true_type和std::false_type

Pytest learning ----- pytest confitest of interface automation test Py file details

1700C - Helping the Nature
随机推荐
Grafana 9.0 正式发布!堪称最强!
Codeforces Round #803 (Div. 2)
第三季百度网盘AI大赛盛夏来袭,寻找热爱AI的你!
MS-TCT:Inria&SBU提出用于动作检测的多尺度时间Transformer,效果SOTA!已开源!(CVPR2022)...
Appium automated test scroll and drag_ and_ Drop slides according to element position
Will openeuler last long
STM32+ENC28J60+UIP协议栈实现WEB服务器示例
Why does wechat use SQLite to save chat records?
Fleet tutorial 13 basic introduction to listview's most commonly used scroll controls (tutorial includes source code)
2022暑期项目实训(三)
Jerry's updated equipment resource document [chapter]
High precision operation
Windows connects redis installed on Linux
2022 Summer Project Training (II)
Pytest learning ----- detailed explanation of the request for interface automation test
Distiller les connaissances du modèle interactif! L'Université de technologie de Chine & meituan propose Virt, qui a à la fois l'efficacité du modèle à deux tours et la performance du modèle interacti
The difference between parallelism and concurrency
Nodejs developer roadmap 2022 zero foundation Learning Guide
Common - magic number 7
递归的方式