- 博客(6)
- 收藏
- 关注
原创 数据结构c语言链队
//---------单链队-队列的链式存储------------ #include #include typedef int QElemType; typedef struct QNode { QElemType data; struct QNode *next; }QNode,*QueuePtr; typedef struct { QueuePtr front
2017-09-10 16:45:20
603
原创 数据结构C语言顺序队
/* 队列:先进先出 队尾:允许插入 队头:删除 */ #include #include typedef int Status; typedef int QElemType; typedef struct { QElemType *base; int front; int rear; }SqQueue; Status InitQueue(SqQueue &Q) {
2017-09-10 16:35:03
372
原创 数据结构C语言链栈
#include #include #define OK 1 #define ERROR 0 typedef int SElemType ; typedef struct SNode{ SElemType data; struct SNode *next; }StackNode,*LinkStack; //初始化 void Init_Stack_L(LinkStack L)
2017-09-10 16:30:33
466
原创 数据结构(C语言)顺序栈
/* 栈:是限定在表尾进行插入删除操作的线性表, 表尾端:栈底,表头:栈顶。 原则:先进后出。 */ //-----------栈的顺序存储表示----------- #include #include #define STACK_INIT_SIZE 100 #define STACKINCRMENT 10 #define OK 1 #define ER
2017-09-07 20:54:20
359
原创 数据结构(C语言)线性表 -单链表
/* 链式存储:不要求逻辑上相邻的元素在物理位置上也相邻, 摒弃顺序存储结构上的缺点,但也失去了顺序表随机存取的优点。 单链表:只含有一个指针域,头指针没有数据域,尾指针的指针域为空。 */ //--------线性表的单链表存储结构--------- #include #include #define OK 1 #define ERROR 0 typedef
2017-09-06 21:39:58
344
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人