当前位置:网站首页>结构体小结
结构体小结
2022-08-04 20:42:00 【柯基@】
- 顺序表(有长度的数组)
typedef struct{
int data[maxSize];
int length;
}SqList;
- 单链表
typedef struct LNode{
int data
struct LNode *next;
}LNode;
- 双链表
typedef struct DLNode{
int data
struct LNode *prior;
struct LNode *next;
}DLNode;
- 顺序栈(有头指针的数组)
typedef struct{
int data[maxSize];
int top;
}SqStack;
- 链栈(头插法的单链表)
typedef struct LNode{
int data
struct LNode *next;
}LNode;
- 顺序队列(有头,尾指针的数组)
typedef struct{
int data[maxSize];
int front,rear;
}SqQueue;
- 链队列
typedef struct LNode{
int data
struct LNode *next;
}QNode;
typedef struct{
QNode *front;
QNode *rear;
}LiQueue;
边栏推荐
猜你喜欢
随机推荐
Tensorflow2 环境搭建
ts集成和使用
基于单向链表结构的软件虚拟定时器的设计与构建
嵌入式分享合集28
vscode离线安装插件方法
刷题-洛谷-P1179 数字统计
微信小程序云开发 | 赠、删、改城市名称信息的应用实现
Go study notes (Part 1) Configuring the Go development environment
Web3时代的战争
刷题-洛谷-P1200 你的飞碟在这儿Your Ride Is Here
JSD-2204-酷莎商城(管理员模块)-密码加密-Day10
刷题-洛谷-P1319 压缩技术
KubeSphere简介,功能介绍,优势,架构说明及应用场景
Apache服务器配置多个站点
C#将对象转换为Dictionary字典集合
uwp ScrollViewer content out of panel when set the long width
[TypeScript] In-depth study of TypeScript enumeration
2022-8-4 第七组 ptz 锁与线程池和工具类
Comic | Two weeks after the boss laid me off, he hired me back and doubled my salary!
【一起学Rust | 进阶篇 | Service Manager库】Rust专用跨平台服务管理库









