数据结构C语言版 代码实现
呀哆啦B梦
一只学习中的小码农
展开
-
《数据结构》单链表基本操作实现
#define ok 1 #define error -1 typedef int ElemType; typedef int Status; typedef struct Node { ElemType data; struct Node *next; }LNode,* LinkList; //构造空表 Status InitList(LinkList *L) { *L=(Link...原创 2018-12-03 21:58:52 · 216 阅读 · 0 评论 -
《数据结构》顺序表基本操作实现
# include "stdio.h" # include "stdlib.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define OVERFLOW -1 #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 typedef int Status; typ...原创 2018-12-03 22:01:17 · 256 阅读 · 0 评论 -
《数据结构》链栈基本操作与实现
#define OK 1 #define ERROR 0 #define FALSE 0 #define TRUE 1 #define OVERFLOW -1 #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 typedef int Status; typedef int SElemType; typedef struct Node{ ...原创 2018-12-03 22:03:14 · 491 阅读 · 0 评论 -
《数据结构》循环队列基本操作与实现
#include "stdio.h" #include "stdlib.h" #define TRUE 1 #define ERROR 0 #define OK 1 #define FALSE 0 #define OVERFLOW -1 typedef int QElemType; typedef int Status; #define MAXQSIZE 100 typedef struct...原创 2018-12-03 22:05:16 · 400 阅读 · 0 评论 -
《数据结构》链队列基本操作与实现
#include "stdio.h" #include "stdlib.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define OVERFLOW -1 typedef int QElemType; typedef int Status; typedef struct QNode { QElemType...原创 2018-12-03 22:06:37 · 573 阅读 · 0 评论 -
《数据结构》串基本操作与实现
#include"stdio.h" #include"stdlib.h" #include"String.h" #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define OVERFLOW -2 #define Maxstrlen 225 typedef unsigned char SString[Maxstrlen...原创 2018-12-03 22:08:38 · 641 阅读 · 0 评论