当前位置:网站首页>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
边栏推荐
猜你喜欢
![Jerry's access to additional information on the dial [article]](/img/a1/28b2a5f7c16cbcde1625a796f0d188.jpg)
Jerry's access to additional information on the dial [article]

How to solve the error "press any to exit" when deploying multiple easycvr on one server?

递归的方式

虚拟机VirtualBox和Vagrant安装

第三季百度网盘AI大赛盛夏来袭,寻找热爱AI的你!

Windows连接Linux上安装的Redis

FMT开源自驾仪 | FMT中间件:一种高实时的分布式日志模块Mlog

Coco2017 dataset usage (brief introduction)

SAP Fiori 应用索引大全工具和 SAP Fiori Tools 的使用介绍

The easycvr authorization expiration page cannot be logged in. How to solve it?
随机推荐
C语言通过指针交换两个数
d绑定函数
Markdown grammar - better blogging
node の SQLite
OpenEuler 会长久吗
Heavy! Ant open source trusted privacy computing framework "argot", flexible assembly of mainstream technologies, developer friendly layered design
Olivetin can safely run shell commands on Web pages (Part 1)
[.Net core] solution to error reporting due to too long request length
std::true_type和std::false_type
编译原理——预测表C语言实现
Jerry is the custom background specified by the currently used dial enable [chapter]
测试1234
Pourquoi Li shufu a - t - il construit son téléphone portable?
Getting started with pytest ----- allow generate report
Coco2017 dataset usage (brief introduction)
Getting started with pytest ----- test case pre post, firmware
【.NET CORE】 请求长度过长报错解决方案
Wchars, coding, standards and portability - wchars, encodings, standards and portability
2022 Summer Project Training (I)
Why should Li Shufu personally take charge of building mobile phones?