
数据结构
取个名字真难啊啊
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言线性表
【代码】C语言线性表基本操作。原创 2022-10-02 11:20:18 · 490 阅读 · 1 评论 -
数据结构之串(完整代码)
数据结构之串定义串的基本操作KMP算法实现(串的唯一重点) 定义串的基本操作 //这儿的下标默认是1开始 #include<iostream> #include<cstring> #include<stdlib.h> using namespace std; #define MAXLEN 255 typedef struct{ char ch[MAXLEN]; int length; }SString;//定长顺序存储表示 typedef st原创 2021-07-29 21:55:22 · 3385 阅读 · 0 评论 -
数据结构之栈与队列(完整代码)
栈与队列顺序栈链栈(带头结点)顺序队列循环队列栈的应用匹配括号中缀表达式转后缀表达式递归(斐波那契数列) 顺序栈 //栈,先进后出 #include<iostream> #include<algorithm> using namespace std; typedef int ElemType; #define MaxSize 10 typedef struct{ ElemType data[MaxSize]; int top; }SqStack; void原创 2021-07-24 07:39:17 · 2121 阅读 · 0 评论 -
数据结构之线性表(代码,完整版)
线性表顺序表(动态存储)链表(不带头结点)链表(带头结点)双链表静态链表 顺序表(动态存储) #include<stdlib.h> #include<stdio.h> #include<iostream> using namespace std; #define InitSize 10 //定义最大长度 //静态分配 //typedef struct { // int data[InitList]; // int length; //}SqlList;原创 2021-07-07 21:21:53 · 4796 阅读 · 0 评论