当前位置:网站首页>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
边栏推荐
- Interview shock 62: what are the precautions for group by?
- 【剑指 Offer】 60. n个骰子的点数
- Principle and usage of extern
- The easycvr authorization expiration page cannot be logged in. How to solve it?
- Transport layer congestion control - slow start and congestion avoidance, fast retransmission, fast recovery
- Why should Li Shufu personally take charge of building mobile phones?
- Declval of template in generic programming
- VR全景婚礼,帮助新人记录浪漫且美好的场景
- C language exchanges two numbers through pointers
- It doesn't make sense without a distributed gateway
猜你喜欢
![[Android] kotlin code writing standardization document](/img/d5/53d6a75e87af15799bf7e5d6eb92a5.png)
[Android] kotlin code writing standardization document

2019 Alibaba cluster dataset Usage Summary

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

I want to say more about this communication failure

F200 - UAV equipped with domestic open source flight control system based on Model Design

Kivy tutorial: support Chinese in Kivy to build cross platform applications (tutorial includes source code)

F200——搭载基于模型设计的国产开源飞控系统无人机

Grafana 9.0 正式发布!堪称最强!

The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?

關於這次通信故障,我想多說幾句…
随机推荐
Reprint: defect detection technology of industrial components based on deep learning
It doesn't make sense without a distributed gateway
MySQL 8 sub database and table backup database shell script
Getting started with pytest ----- test case pre post, firmware
78 岁华科教授逐梦 40 载,国产数据库达梦冲刺 IPO
Mysqlimport imports data files into the database
关于这次通信故障,我想多说几句…
RB157-ASEMI整流桥RB157
Jerry's setting currently uses the dial. Switch the dial through this function [chapter]
D binding function
Distinguish between basic disk and dynamic disk RAID disk redundant array
std::true_type和std::false_type
After entering Alibaba for the interview and returning with a salary of 35K, I summarized an interview question of Alibaba test engineer
Growth of operation and maintenance Xiaobai - week 7
Is it meaningful for 8-bit MCU to run RTOS?
MSF横向之MSF端口转发+路由表+SOCKS5+proxychains
李書福為何要親自掛帥造手機?
What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
虚拟机VirtualBox和Vagrant安装
2019 Alibaba cluster dataset Usage Summary