![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
jhlyh
这个作者很懒,什么都没留下…
展开
-
线性表的顺序存储结构和操作实现
自定义头文件头文件名:List.h#ifndef LIST_H_INCLUDED#define LIST_H_INCLUDEDtypedef int ElemType;typedef struct SequList //定义顺序储存线性表的结构类型 { ElemType* list; //只想动态数组空间的指针 int len; //保存线性表的当前长度 int MaxSize; //保存List数组的长度 }List; #endif.原创 2021-03-21 21:44:54 · 445 阅读 · 0 评论 -
线性表的链接存储结构和操作实现
参考数据结构(c语言描述)徐孝凯著头文件List.h#ifndef LIST_H_INCLUDED#define LIST_H_INCLUDEDtypedef int ElemType;typedef struct SingleNode{ ElemType data; struct SingleNode* next;}List;#endif 线性表在链接存储下运算的算法.c#include <stdio.h>#include <stdlib.h>#in原创 2021-03-23 10:01:09 · 223 阅读 · 0 评论 -
栈的顺序存储结构和操作实现
头文件Stack.h#ifndef STACK_H_INCLUDED#define STACK_H_INCLUDEDtypedef int ElemType;typedef struct SequStack{ ElemType* stack; int top; int MaxSize;}Stack;#endif栈在顺序存储下运算的算法.c`#include <stdio.h>#include <stdlib.h>#include "Stack.h"原创 2021-03-23 22:30:08 · 377 阅读 · 0 评论 -
栈的链式存储和操作实现
#ifndef STACK_H_INCLUDED#define STACK_H_INCLUDEDtypedef int ElemType;typedef struct SingleNode{ ElemType data; struct SingleNode* next;}Stack;#endif #include <stdio.h>#include <stdlib.h>#include "Stack.h"/*************************原创 2021-03-27 18:43:11 · 109 阅读 · 0 评论 -
队列的顺序存储结构和操作实现
#ifndef QUEUE_H_INCLUDED#define QUEUE_H_INCLUDEDtypedef int ElemType;typedef struct SequQueue{ ElemType *queue; int front, rear; int MaxSize;}Queue;//队列 front指向的为空,即Q->queue[Q->fornt+1]才为队首元素,以便判别队列是否满与空/************************************原创 2021-03-31 22:35:58 · 132 阅读 · 0 评论 -
队列的链式存储结构与操作方法
#ifndef QUEUE_H_INCLUDED#define QUEUE_H_INCLUDEDtypedef int ElemType;typedef struct SingleNode{ ElemType data; //值域 struct SingleNode* next;//链接指针域}Node;typedef struct linkQueue{ Node* front; Node* rear;}Queue;/*************************原创 2021-04-02 18:33:43 · 81 阅读 · 0 评论