![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DataStructure
weicomm
这个作者很懒,什么都没留下…
展开
-
链表栈(动态分配管理)
// 2013-11-5 //链表静态栈 /* *在一个栈结构体中设置两个节点指针,分别指向栈顶和栈底 *节点是按需要新增的,所以这个栈理论上是可以很大的,与windows系统自动分配的栈有所不同 *首先要初始化栈,就是将栈顶和栈底都指向一个新造的节点,这个节点始终都存在,相当于链表中的头结点, *这个节点不放任何数据元素,只是用来管理栈的 */ #include #inclu原创 2013-11-07 10:39:43 · 743 阅读 · 0 评论 -
单向链表操作
// 链表操作.cpp : Defines the entry point for the console application. //链表的创建,插入,删除,反转,数据排序~~~~~~~~~~~~ #include "stdafx.h" #include #include #include #include #include typedef struct No原创 2013-11-07 10:20:14 · 455 阅读 · 0 评论 -
双向链表的基本操作
main.c /* *2013-11-7 *双向链表的基本操作,类似于单向链表,只不过多出了一个前节点指针 *基本操作详见代码中 */ #include "D_List.h" int main(void) { pDLIST pHead = creat_dlist(); traverse(pHead); en_dlist(pHead, 3, 8);原创 2013-11-07 16:34:20 · 661 阅读 · 0 评论 -
二叉树的操作
头文件,公用的结构内型 和相关函数的声明 #ifndef BITREEEX_H #define BITREEEX_H #define MaxSize 50 #include using namespace std; typedef char ElemType; typedef struct BiTreeEx { ElemType data; struct BiT原创 2013-11-10 17:02:06 · 499 阅读 · 0 评论