![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
浙大数据结构
浙大数据结构
aixiaoql
一笑遮百丑。
展开
-
浙大数据结构 队列的实现(数组)
//浙大数据结构 队列的实现(数组) #include<stdio.h> #include<stdlib.h> #include<crtdbg.h> #define ERROR -1 #define MAXSIZE 4 typedef int ElementType; typedef int Position; struct QNode { ElementType *Data; /* 存储元素的数组 */ Position Front, Rear; .原创 2020-06-17 22:51:35 · 150 阅读 · 0 评论 -
//浙大数据结构 栈(链表)
//浙大数据结构 栈(链表) #include<stdio.h> #include<stdlib.h> #include<crtdbg.h> #define ERROR -1 typedef int ElementType; typedef struct SNode *PtrToSNode; struct SNode { ElementType Data; PtrToSNode Next; }; typedef PtrToSNode Stack; Stac.原创 2020-06-16 22:44:51 · 160 阅读 · 0 评论 -
浙大数据结构 栈的实现(数组)
//浙大数据结构 栈的实现(数组) #include<stdio.h> #include<stdlib.h> #include<crtdbg.h> #define ERROR NULL; #define MAXSIZE 10 typedef int Position; typedef int ElementType; struct SNode { ElementType *Data; /* 存储元素的数组 */ Position Top; /* 栈.原创 2020-06-15 22:38:02 · 130 阅读 · 0 评论 -
浙大数据结构 线性表的顺序存储结构实现
//浙大数据结构 线性表的顺序存储结构实现 #include<iostream> #define MAXSIZE 10 typedef int ElementType; typedef int Position; typedef struct LNode *List; struct LNode { ElementType Data[MAXSIZE]; Position Last; }; /* 初始化 */ List MakeEmpty() { List L; L = (List.原创 2020-05-24 20:24:28 · 187 阅读 · 1 评论