![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
何处不扁舟
这个作者很懒,什么都没留下…
展开
-
连续存储数组(C语言郝斌)
#include <stdio.h> #include <malloc.h> #include <stdlib.h> //包括exit //定义了一个数据类型,该数据类型的名字叫strut Arr struct Arr{ int * pBase; //存储的是数组第一个元素的地址 int len; //数组所能容纳的最大元素的个数 int cn...原创 2019-08-31 16:31:50 · 322 阅读 · 0 评论 -
链表(C语言郝斌)
#include <stdio.h> #include <malloc.h> #include <stdlib.h> typedef struct Node{ int data;//数据域 struct Node * pNext;//指针域 }NODE,*PNODE; //NODE 等价于struct Node ,pNODE等价于struct Nod...原创 2019-08-31 16:36:55 · 307 阅读 · 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; ...原创 2019-08-31 16:39:00 · 173 阅读 · 0 评论 -
循环队列-数组实现(C语言郝斌)
//入队rear往上 //出队front往上 //应用场合:所有和时间有关的操作都与队列的影子 #include <stdio.h> #include <malloc.h> typedef struct Queue{ int *pBase; int front; int rear; }QUEUE; void init(QUEUE *); bool en_que...原创 2019-08-31 16:40:39 · 310 阅读 · 1 评论 -
链式二叉树(C语言郝斌)
#include <stdio.h> #include <malloc.h> struct BTNode{ char data; struct BTNode * pLchild;//p是指针 L是左 child是孩子 struct BTNode * pRchild;//右孩子 }; void PreTraverseBTree(struct BTNode *); v...原创 2019-08-31 16:42:26 · 153 阅读 · 0 评论