![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 74
qq_34967667
这个作者很懒,什么都没留下…
展开
-
图的邻接矩阵实现c语言
#define _CRT_SECURE_NO_WARNINGS#include #include #define MAXSIZE 100#define INFINITY 65535typedef char VertexType; /*顶点类型char*/typedef int Arc;/*边的类型int*/typedef struct MGraph { VertexType原创 2018-02-02 17:00:24 · 424 阅读 · 0 评论 -
图的邻接表存储实现c语言
#define _CRT_SECURE_NO_WARNINGS#include #include #define MAXSIZE 100#define INFINITY 65535typedef char VertexType; /*顶点类型char*/typedef int Arc;/*边的类型int*///邻接表的节点typedef struct AdjListNode_原创 2018-02-02 19:32:31 · 487 阅读 · 0 评论 -
图的邻接多重表存储
#define _CRT_SECURE_NO_WARNINGS#include #include "stdio.h"#define MAX_VEX_NUM 20enum E_VisitIf{ unisited = 0, visited=1,};//弧节点struct ArcNode { E_VisitIf mark; int iIndex, jIndex;//顶点i原创 2018-02-04 16:18:24 · 476 阅读 · 0 评论 -
迪杰斯特拉最短路径算法
/**************************************************************************//* 算法实现作者:xingzhou *//* 完成时间:2018/2/4原创 2018-02-05 14:52:29 · 879 阅读 · 0 评论 -
c++ 输入流cin深入解析
cin从输入缓冲区读取数据,有多重方式,如:>>、get()、getline()等1.>>根据后面的变量类型读取数据读取时结束条件为:回车、空格、tab对结束符的处理:丢弃测试:#include using namespace std;int main(void){ char str[3]; cin >> str; cout << str << end原创 2018-02-05 16:57:24 · 225 阅读 · 0 评论 -
散列的实现
#define _CRT_SECURE_NO_WARNINGS#include #include #define HASHSIZE 12 //定义散列表数组的长度#define ERROR 0#define OK 1#define NULLKEY -32768#define UNSUCCESS 0#define SUCCESS 1typedef struct { int原创 2018-02-07 19:51:59 · 236 阅读 · 0 评论