![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
这个作者很懒,什么都没留下…
浴盆里的毓鹏
这个作者很懒,什么都没留下…
展开
-
数据结构——栈的基本操作(C语言实现)
#include "stdio.h"#include "malloc.h" //用于malloc、realloc函数#define size 10 //存储空间分配增量typedef int type;typedef struct stack{ type* base;//栈底元素 type* top;//栈顶元素 int stacksize;//栈的空间大小}Sqstack;type InitStack(Sqstack* S); //初始化栈函数type StackEmpty(原创 2020-05-26 17:10:56 · 536 阅读 · 0 评论 -
数据结构——链表的基本操作(C语言实现)
#include "stdio.h"#include "malloc.h" //用于malloc、realloc函数typedef int Type;typedef struct lnode{ Type data; //数据域 struct lnode* next;//指针域}Lnode, * LinkList;//Lnode为结点类型 LinkList为指向Lnode型的指针变量//函数说明void CreateList_1(LinkList L, int n); //逆序建表函数原创 2020-05-26 17:09:57 · 360 阅读 · 0 评论 -
数据结构——线性表的基本操作(C语言实现)
#include "stdio.h"#include "malloc.h" //用于malloc、realloc函数#define SIZE 100typedef int ElemType;//定义新类型便于后期修改typedef int Status;typedef struct sqlist { ElemType* elem;//存放线性表地址 int length; //存放线性表长度 int listsize; //存放线性表的个数 } SqList; //定义结构体原创 2020-05-26 17:08:24 · 8781 阅读 · 4 评论