数据结构(C语言实现)
数据结构C语言代码实现
lixuefeng2305
中国科学院硕士
展开
-
数据结构之线索二叉树(C语言实现)
#include <assert.h> #include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> typedef struct binaryTreeNode* BTN; //二叉树节点结构体; typedef struct binaryTreeNode{ int data; BTN leftChild; BTN rightC原创 2020-07-18 00:50:41 · 163 阅读 · 0 评论 -
数据结构之栈
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <stdarg.h> #include <stddef.h> typedef struct node* N; typedef struct node{ int data; struct node *next; struct node *pre; }* tmp; typedef struc原创 2020-07-16 23:24:41 · 89 阅读 · 0 评论 -
数据结构之队列
#include <assert.h> #include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> typedef struct node* N; typedef struct node { int data; N next; N pre; }Node; typedef struct queue* Q; typedef原创 2020-07-16 23:23:25 · 88 阅读 · 0 评论 -
数据结构之数组
#include <stdio.h> #include <stdlib.h> #include <time.h> #define ARRAY_ERASED -1 #define SUCCESS 0 #define INVALID_POSITION 1 #define POSITION_INIT 2 #define POSITION_NOT_INIT 3 #define POSITION_EMPTY 4 #define ARRAY_FULL 5 typedef.原创 2020-07-16 23:17:42 · 124 阅读 · 0 评论 -
数据结构之链表
链表 #include <assert.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> typedef struct entry { char key; int data; }T; typedef struct node* L; typedef struct node { int data; L ne原创 2020-07-16 23:15:28 · 85 阅读 · 0 评论 -
数据结构之二叉树
二叉树的C语言实现 二叉树的C++语言实现原创 2020-07-15 12:23:45 · 215 阅读 · 0 评论