当前位置:网站首页>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
边栏推荐
- Redis的五种数据结构
- 1700C - Helping the Nature
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- 趣-关于undefined的问题
- 面试突击62:group by 有哪些注意事项?
- The integrated real-time HTAP database stonedb, how to replace MySQL and achieve nearly a hundredfold performance improvement
- 2022暑期项目实训(一)
- J'aimerais dire quelques mots de plus sur ce problème de communication...
- 二分(整数二分、实数二分)
- STM32+ENC28J60+UIP协议栈实现WEB服务器示例
猜你喜欢
Ms-tct: INRIA & SBU proposed a multi-scale time transformer for motion detection. The effect is SOTA! Open source! (CVPR2022)...
RB157-ASEMI整流桥RB157
带你穿越古罗马,元宇宙巴士来啦 #Invisible Cities
Maixll dock camera usage
Appium automated test scroll and drag_ and_ Drop slides according to element position
30 minutes to understand PCA principal component analysis
關於這次通信故障,我想多說幾句…
虚拟机VirtualBox和Vagrant安装
Take you through ancient Rome, the meta universe bus is coming # Invisible Cities
Jerry's access to additional information on the dial [article]
随机推荐
虚拟机VirtualBox和Vagrant安装
Introduction to the usage of model view delegate principal-agent mechanism in QT
[swoole series 2.1] run the swoole first
On time and parameter selection of asemi rectifier bridge db207
Declval of template in generic programming
QT中Model-View-Delegate委托代理机制用法介绍
Declval (example of return value of guidance function)
Jerry's watch reading setting status [chapter]
Interview shock 62: what are the precautions for group by?
1700C - Helping the Nature
Excellent open source fonts for programmers
30 minutes to understand PCA principal component analysis
模板于泛型编程之declval
编译原理——预测表C语言实现
阿里云国际版ECS云服务器无法登录宝塔面板控制台
2022暑期项目实训(二)
重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用
Manifest of SAP ui5 framework json
Wchars, coding, standards and portability - wchars, encodings, standards and portability
Jerry is the custom background specified by the currently used dial enable [chapter]