c
小菜菜李
acm小菜菜李,新手上路~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据结构 链栈
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef int ElemType; typedef struct SNode { ElemType data; struct SNode *next; }SNode,*LinkStack; SNode *InitStack(); void DestroyStack(LinkStack SS); int Push(Link原创 2021-09-27 21:55:45 · 191 阅读 · 0 评论 -
数据结构 顺序栈
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXSIZE 10 typedef int ElemType; typedef struct{ ElemType data[MAXSIZE]; int top;//栈顶指针,-1表示空栈,maxsize-1表示满栈 }SeqStack,*PSeqStack; // 顺序栈SS的初始化操作。 void Init原创 2021-09-27 21:55:13 · 307 阅读 · 0 评论 -
数据结构 单向链表
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef int ElemType; typedef struct LNode { ElemType data; struct LNode *next; }LNode,*LinkList; LNode * InitList();//成功返回头节点 失败返回NULL void DestroyList(LinkList LL); v原创 2021-09-27 21:54:32 · 260 阅读 · 0 评论 -
动态顺序表
#include <stdio.h> #include <string.h> #include <stdlib.h> #define INITSIZE 10 // 顺序表的初始长度。 #define EXTSIZE 5 // 每次扩展元素的个数。 typedef int ElemType; // 自定义顺序表的数据元素为整数。 typedef struct { ElemType *data; // 存原创 2021-09-27 21:53:45 · 161 阅读 · 0 评论 -
数据结构 静态顺序表
数据结构 线性表之顺序表整数版本 #include <stdio.h> #include <string.h> #define MAXSIZE 100 typedef int ElemType; typedef struct { ElemType data[MAXSIZE]; unsigned int length; }SeqList,*PSeqList; void InitList(PSeqList LL);//初始化 void DestroyList(PS原创 2021-09-02 22:55:01 · 163 阅读 · 0 评论
分享