From 2a2bd5c2fcd114fc2f483d7bfe95aaa5069b8ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=89=BA=E5=93=B2?= <446062334@qq.com> Date: Mon, 3 Jul 2023 13:15:23 +0800 Subject: [PATCH] void --- 城市地铁导航系统.c | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/城市地铁导航系统.c b/城市地铁导航系统.c index efee5b1..d496577 100644 --- a/城市地铁导航系统.c +++ b/城市地铁导航系统.c @@ -42,6 +42,54 @@ void createjz(){//创建邻接矩阵函数 printf("\n"); } } +int num2=0; + void Dijkstra(int v1,int v2){ + int dist[MAX],s[MAX],path[MAX];//s判断v1是否已经判断最短路径,path前驱 + int min,i,j,u,pre; + for(i=0;i",nm.adjust[pre].name); + pre=path[pre]; + } + printf("%s",nm.adjust[pre].name); + } + else printf("路径不存在!\n"); + } + } +} int main() { creatnode();