当前位置:网站首页>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
边栏推荐
- Is it meaningful for 8-bit MCU to run RTOS?
- 【Swoole系列2.1】先把Swoole跑起来
- STM32+MFRC522完成IC卡号读取、密码修改、数据读写
- Excel usage record
- Windows connects redis installed on Linux
- Jerry's watch reads the file through the file name [chapter]
- The third season of Baidu online AI competition is coming in midsummer, looking for you who love AI!
- Getting started with pytest ----- test case rules
- Coco2017 dataset usage (brief introduction)
- Implementation of queue
猜你喜欢
C language exchanges two numbers through pointers
从交互模型中蒸馏知识!中科大&美团提出VIRT,兼具双塔模型的效率和交互模型的性能,在文本匹配上实现性能和效率的平衡!...
ASEMI整流桥DB207的导通时间与参数选择
std::true_type和std::false_type
队列的实现
传输层 拥塞控制-慢开始和拥塞避免 快重传 快恢复
[.Net core] solution to error reporting due to too long request length
Compilation Principle -- C language implementation of prediction table
Kivy tutorial: support Chinese in Kivy to build cross platform applications (tutorial includes source code)
QT中Model-View-Delegate委托代理机制用法介绍
随机推荐
Declval (example of return value of guidance function)
Introduction to the usage of model view delegate principal-agent mechanism in QT
Jielizhi obtains the customized background information corresponding to the specified dial [chapter]
Insert dial file of Jerry's watch [chapter]
Getting started with pytest ----- test case pre post, firmware
编译原理——预测表C语言实现
STM32按键状态机2——状态简化与增加长按功能
C语言通过指针交换两个数
30 minutes to understand PCA principal component analysis
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Pourquoi Li shufu a - t - il construit son téléphone portable?
The easycvr authorization expiration page cannot be logged in. How to solve it?
第三季百度网盘AI大赛盛夏来袭,寻找热爱AI的你!
d绑定函数
1700C - Helping the Nature
MSF横向之MSF端口转发+路由表+SOCKS5+proxychains
STM32+ENC28J60+UIP协议栈实现WEB服务器示例
Recommend easy-to-use backstage management scaffolding, everyone open source
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
declval(指导函数返回值范例)