摘要: 编程实现:以邻接表的存储方式,创建一个有向网,顶点为字符型。 #include #include using namespace std; const int N=1010; struct arc{ int e; arc* next; int w; }; struct { int n,m; char 阅读全文
posted @ 2021-11-14 19:28 Lindseyyip 阅读(86) 评论(0) 推荐(0)
摘要: 编程实现:以邻接矩阵的存储方式,创建一个有向图,顶点为字符型。 #include #include using namespace std; const int N=1010; struct { int n,m; char vers[N]; bool arcs[N][N]; }gra; int fi 阅读全文
posted @ 2021-11-14 19:26 Lindseyyip 阅读(122) 评论(0) 推荐(0)