![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
goingqing
这个作者很懒,什么都没留下…
展开
-
循环队列(线性队列)模拟(方式1)-数据结构
# include <stdio.h> # include <malloc.h> # include <stdlib.h> const int DEFAULT_LEN = 12;//队列长度必须>=2; typedef struct Queue { int * pbase; int * front; int * rear; }QUEUE,*PQUEUE; void init(PQUEUE);//初始化一个队列 int * get_next_rear(PQ.原创 2021-08-28 18:12:06 · 75 阅读 · 0 评论 -
栈模拟 数据结构 C语言
# include <stdio.h> # include <malloc.h> # include <stdlib.h> typedef struct Node//节点 { int data; struct Node * pnext; }NODE,* PNODE; typedef struct Stack//栈 { PNODE ptop; PNODE pbottom; }STACK,* PSTACK; bool init(PSTAC...原创 2021-08-26 16:34:20 · 112 阅读 · 0 评论 -
数据结构-C语言链表模拟
# include <stdio.h> # include <malloc.h> # include <stdlib.h> //线性链表模拟 /* 只是单纯的模拟练习一下,没有检查健壮性,这可能是一个漏洞百出的程序。 */ typedef struct Node { int data; struct Node * pNode; }NODE,* PNODE; PNODE create_list(int/*链表的长度,链表的值默认为0*/);//创...原创 2021-08-25 14:00:50 · 93 阅读 · 0 评论