数据结构
陌生人你好.
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
实现图的邻接矩阵和邻接表的存储
十五,实现图的邻接矩阵和邻接表的存储 #include<stdio.h> #include<stdlib.h> #define max 100 #define INF 32767 #define InfoType char typedef struct { int no; InfoType info; }VertexType; typedef struct { ...原创 2019-12-20 10:46:54 · 2633 阅读 · 1 评论 -
数据结构之树和二叉树
十一,实现二叉树的各种基本运算的方法 #include<stdio.h> #include<stdlib.h> #define ElemType char #define max 100 typedef struct node { ElemType data; struct node *lchild; //左孩子 struct node *rchild; //...原创 2019-12-20 10:35:10 · 303 阅读 · 0 评论 -
数据结构之串
八,实现顺序串的基本运算的算法 #include <stdio.h> #include <stdlib.h> #define max 100 typedef struct { char data[max]; int length; }sqstring; sqstring s, s1; void strassign(sqstring &s, char str[])...原创 2019-12-20 10:06:36 · 268 阅读 · 0 评论 -
数据结构之栈和队列
四,顺序栈和顺序队列 (1)顺序栈的应用(十进制数转换为二进制数) #include<stdio.h> #include<stdlib.h> #define ElemType int #define max 100 #define N 2 typedef struct { ElemType data[max]; int top; }sqstack; sqstack *...原创 2019-12-20 10:03:29 · 221 阅读 · 0 评论 -
数据结构之线性表
一,实现顺序表的各种基本运算 #include<stdio.h> #include<stdlib.h> #define ElemType char #define MaxSize 50 typedef struct { ElemType data[MaxSize]; int length; }Sqlist; void CreatList(Sqlist *&L,...原创 2019-12-20 09:53:04 · 275 阅读 · 0 评论
分享