数据结构中ADT
文章平均质量分 61
主要针对链表,队列,栈
初心勿忘
人应自制,否则与禽兽无异!
展开
-
二叉查找树的C语言实现
下面代码是自己在学习二叉查找树时写的,纯属为了记录自己的学习过程。 //C语言实现二叉查找树 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ typedef struct _SearchTreeN原创 2016-07-11 15:02:11 · 1271 阅读 · 0 评论 -
栈的C语言实现(链表)
//栈的链表实现,包括空栈、出栈、入栈、打印栈中元素 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ typedef struct _NODE_{ struct _NODE_ *next; in原创 2016-07-07 10:52:25 · 982 阅读 · 0 评论 -
栈的C语言实现(数组)
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ #define EmptyStack -1 typedef struct _STACK_ARRAY{ int size; int capacity;原创 2016-07-07 14:06:15 · 1654 阅读 · 0 评论 -
队列的C语言实现(循环数组结构)
//队列的循环数组实现 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ typedef int ElementType; typedef struct _QUEUE_ARRAY_{ int fro原创 2016-07-06 22:46:42 · 3467 阅读 · 0 评论 -
单链表的C语言实现
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ typedef int DATATYPE; //链表结点的数据结构定义 typedef struct node{ DATATYPE data; s原创 2016-07-06 22:59:06 · 495 阅读 · 0 评论 -
循环链表的C语言实现
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //双链表结点结构 typedef struct _CYCLE_DOUBLE_LINK_NODE{ int data; struct _CYCLE_原创 2016-07-06 19:24:48 · 492 阅读 · 0 评论 -
双链表的C语言实现
#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //双链表的基本结构 typedef struct _DOUBLE_LINK_NODE{ int data; struct _DOUBLE_LINK原创 2016-07-06 19:26:00 · 1957 阅读 · 0 评论 -
队列的C语言实现(单链表结构)
//队列的单链表实现,创建、插入、删除 、打印 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ typedef struct _QUEUE_NODE_{ int data; struct _QUE原创 2016-07-06 22:48:12 · 560 阅读 · 0 评论