当前位置:网站首页>C语言自动预订飞机票问题
C语言自动预订飞机票问题
2022-07-06 10:12:00 【_程序设计_】
C语言自动预订飞机票问题
2.自动预订飞机票问题(难度2)
设民航公司有一个自动预订飞机票的系统。该系统中有一张用单向链表表示的乘客表,下表中的结点按乘客姓氏的字母顺序相链。例如,下面是张某个时刻的乘客表。设计程序完成以下功能。
序号 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)建立一个静态双向链表L;
2)输入表中记录;
3)输出表中所有记录;
4)任一乘客要订票则增加相应记录;
5)某一乘客要退票时则删除相应记录;
6)有合理的提示,每个功能可以设立菜单,根据提示,可以完成相关的功能要求。
提示:
静态双向链表结构定义:
typedef struct node
{ char data[maxsize];//姓名,maxsize是可能达到的用户名的最大长度
int link,rlink; //前向、后向链,其值为乘客数组下标值
}unode;
unode user[max]; //max是可能达到的最多客户数
源码下载
链接:https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
提取码:1111
边栏推荐
- The difference between parallelism and concurrency
- MarkDown语法——更好地写博客
- 李書福為何要親自掛帥造手機?
- 模板于泛型编程之declval
- Running the service with systemctl in the container reports an error: failed to get D-Bus connection: operation not permitted (solution)
- Prophet模型的简介以及案例分析
- 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]
- 一体化实时 HTAP 数据库 StoneDB,如何替换 MySQL 并实现近百倍性能提升
- d绑定函数
猜你喜欢

Getting started with pytest ----- test case pre post, firmware

The easycvr authorization expiration page cannot be logged in. How to solve it?

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

趣-关于undefined的问题

推荐好用的后台管理脚手架,人人开源

Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"

Heavy! Ant open source trusted privacy computing framework "argot", flexible assembly of mainstream technologies, developer friendly layered design

JMeter interface test response data garbled

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

【Swoole系列2.1】先把Swoole跑起来
随机推荐
Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
Introduction to the usage of model view delegate principal-agent mechanism in QT
模板于泛型编程之declval
Jielizhi obtains the customized background information corresponding to the specified dial [chapter]
Getting started with pytest ----- test case pre post, firmware
Reprint: defect detection technology of industrial components based on deep learning
TCP packet sticking problem
Four processes of program operation
Interview shock 62: what are the precautions for group by?
從交互模型中蒸餾知識!中科大&美團提出VIRT,兼具雙塔模型的效率和交互模型的性能,在文本匹配上實現性能和效率的平衡!...
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Interview shock 62: what are the precautions for group by?
adb常用命令
d绑定函数
Growth of operation and maintenance Xiaobai - week 7
Jerry's watch deletes the existing dial file [chapter]
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
Nodejs developer roadmap 2022 zero foundation Learning Guide
C语言通过指针交换两个数
李书福为何要亲自挂帅造手机?