
数据结构
jack___coder
开源社区爱好者
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
//线性表链式储存(链表)
#include<stdio.h>#include<malloc.h>typedef int datatype;typedef struct link_node{ datatype info; struct link_node *next;}node;//创建链表????node *createlist(){ node ...原创 2019-02-21 15:51:04 · 225 阅读 · 0 评论 -
单链表队列
#include<stdio.h>#include<malloc.h>typedef int QElemType;#define OVERFLOW 1#define Status 0#define OK 1typedef struct QNode{ QElemType data; struct QNode *next; ...原创 2019-02-22 12:11:22 · 380 阅读 · 0 评论 -
数据结构----循环队列
#include<stdio.h>#include<malloc.h>#define MAXSIZE 100#define OK 1#define OVERFLOW 1#define ERROR 1typedef int Status;typedef int QElemType ;typedef struct sqqueue{ QElemType...原创 2019-02-22 16:42:23 · 267 阅读 · 0 评论 -
数据结构之顺序表
//顺序表的创建与输出#include<stdio.h>#define MAXSIZE 4typedef int typedata; typedef struct data{ int size; int a[MAXSIZE]; }seq_list;//顺序表的创建void create(seq_list *s){ ...原创 2019-02-20 16:54:04 · 224 阅读 · 0 评论 -
顺序队列
#include<stdio.h>#include<stdlib.h>typedef signed char Status;//define queue node structtypedef struct QNode{ int data; struct QNode *next; }QNode,*Queue...原创 2019-09-10 18:21:56 · 188 阅读 · 0 评论 -
循环队列
#include<stdio.h>#include<stdlib.h>#define MAXQSIZE 100typedef int Status;typedef int ElemType;typedef struct{ ElemType *base; int front; int rear;}SqQueue;//初始化循环队列St...原创 2019-09-10 18:24:07 · 266 阅读 · 0 评论