- 博客(3)
- 收藏
- 关注
原创 数据结构 c语言实现图的邻接表创建及深度与广度优先遍历
#include <stdio.h>#include <stdlib.h>#define MVNUM 5 //最多的顶点数typedef char VerTexType; //顶点元素的类型VerTexType vexs[MVNUM]={'a','b','c','d','e'}; //顶点数组int visiteds[5]={0,0,0,0,0}; //深度and广度优先遍历的标记数组typedef struct ArcNode //边节点{ int...
2022-01-23 00:43:52
2449
3
原创 数据结构 c语言实现顺序表
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 10typedef int ElemType;typedef struct{ ElemType data[MAXSIZE]; int length;}Sqlist;//函数声明void InitList(Sqlist *L); //初始化顺序表void ShowList(Sqlist *L); //打印表int ListInsert(Sqli...
2022-01-16 17:41:46
439
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅