随笔分类 - DataStructure
摘要:/** * @author huihut * @E-mail:huihut@outlook.com * @version 创建时间:2016年9月9日 * 说明:本程序实现了一个顺序栈。 * 功能:有初始化、销毁、判断空、清空、入栈、出栈、取元素的操作。 */ #include "stdio.h" #include "stdlib.h" #include "malloc.h" //5个常量定...
阅读全文
摘要:/** * @author huihut * @E-mail:huihut@outlook.com * @version 创建时间:2016年9月9日 * 说明:本程序实现了一个顺序表。 */ #include "stdio.h" #include "stdlib.h" #include "malloc.h" //5个常量定义 #define TRUE 1 #define FALSE 0 #...
阅读全文
摘要:#define BLACK 1 #define RED 0 #include using namespace std; class bst { private: struct Node { int value; bool color; Node *leftTree, *rightTree, *parent; Nod...
阅读全文
摘要:/** * @author huihut * @E-mail:huihut@outlook.com * @version 创建时间:2016年9月23日 * 说明:本程序实现了一个具有头结点的单链表。 */ #include "stdio.h" #include "stdlib.h" #include "malloc.h" //5个常量定义 #define TRUE 1 #define FA...
阅读全文
摘要:/** * @author huihut * @E-mail:huihut@outlook.com * @version 创建时间:2016年9月18日 * 说明:本程序实现了一个单链表。 */ #include "stdio.h" #include "stdlib.h" #include "malloc.h" //5个常量定义 #define TRUE 1 #define FALSE 0 ...
阅读全文
摘要:#include #include #define SUCCESS 1 #define UNSUCCESS 0 #define OVERFLOW -1 #define OK 1 #define ERROR -1 typedef int Status; typedef int KeyType; typedef struct{ KeyType key; }RcdType; typed...
阅读全文
摘要:#include #include #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW -1 #define SUCCESS 1 #define UNSUCCESS 0 #define dataNum 5 int i = 0; int dep = 0; char data[dataNum] ...
阅读全文
浙公网安备 33010602011771号