
数据结构
Adam Xi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
单链表的基本接口
SList.h#ifndef _SLIST_H_#define _SLIST_H_#include<stdio.h>#include<windows.h>typedef int SLTDataType;typedef struct SListNode { SLTDataType data; struct SListNode* next;}SList...原创 2019-07-19 09:17:42 · 709 阅读 · 0 评论 -
双向链表的基本接口
List.h#ifndef _LIST_H_#define _LIST_H_#include<stdio.h>#include<windows.h>typedef int LTDataType;typedef struct ListNode { LTDataType _data; struct ListNode* _next; struct List...原创 2019-07-20 09:15:11 · 466 阅读 · 0 评论 -
动态顺序表的基本接口
静态顺序表只适用于确定需要存多少数据的场景。静态顺序表的定长数组导致N定大了,空间开多了浪费,开少了不够用。所以现实中基本都是使用动态顺序表,根据需要动态的分配空间大小,所以,本篇中我们实现动态顺序表。SeqList.h#ifndef _SEQLIST_H_#define _SEQLIST_H_#include<stdio.h>#include<stdlib.h&g...原创 2019-07-17 21:56:42 · 380 阅读 · 0 评论 -
栈的基本接口
Stack.h#ifndef _STACK_H_#define _STACK_H_#include<stdio.h>#include<Windows.h>typedef int STDataType;typedef struct Stack{ STDataType a[20]; int top; //栈顶 int capacity; //容量}S...原创 2019-07-27 16:38:43 · 1211 阅读 · 0 评论 -
队列的基本接口
Queue.h#ifndef _SQ_H_#define _SQ_H_#include<stdio.h>#include<Windows.h>#define MAXSIZE 100typedef int QuDataType;typedef struct Queue{ QuDataType data[MAXSIZE]; QuDataType * ...原创 2019-07-23 15:26:09 · 855 阅读 · 0 评论