![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Data Structure
GeniusZYX
http://git.oschina.net/dashboard/projects
展开
-
顺序栈的实现
顺序栈的实现相对较为容易,但是应用极其广泛强大。/*** SqStack.h*/#ifndef SQSTACK_H#define SQSTACK_H#include <stdio.h>#include <stdlib.h>#define STACK_INIT_SIZE 100#define STACKINCREMENT 10typedef int SElemType;typedef原创 2015-10-04 18:16:48 · 277 阅读 · 0 评论 -
线性表的实现--顺序表&&链表
谨以此系列纪念逝去的大学时光!本文共分为两部分,第一部分为顺序表的实现,第二部分为单链表的实现。均采用分离式编译写法。代码思想来源于《数据结构(C语言描述)》,严蔚敏著。顺序表如下://SqList.h#ifndef SQLIST_H#define SQLIST_H#define LIST_INT_SIZ 100#define LISTINCREMENT 10typedef int E原创 2015-10-02 14:42:43 · 383 阅读 · 0 评论 -
链队列的实现
//Queue.h#ifndef QUEUE_H#define QUEUE_H#include <stdlib.h>#include <stdio.h>#define OK 1typedef int QElemType;typedef int Status;typedef struct QNode{ QElemType data; struct QNode *next;}原创 2015-10-07 20:54:33 · 343 阅读 · 0 评论