|
|
|
@ -370,12 +370,14 @@ void createjz(){//创建邻接矩阵函数
|
|
|
|
|
7. print()函数是用于打印地铁线路的邻接表。
|
|
|
|
|
8. Dijkstra()函数是用于计算最佳出行线路和预估费用,它使用了Dijkstra算法。
|
|
|
|
|
9. main()函数是程序的入口点,它首先初始化地铁站点的数据,然后进入一个循环,等待用户的输入。用户可以选择最佳出行线路推荐或出行费用预估,或者退出系统。
|
|
|
|
|
|
|
|
|
|
C3:void createjz();
|
|
|
|
|
|
|
|
|
|
C2:void creatnode()
|
|
|
|
|

|
|
|
|
|
void printff()
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
C4:void printf();
|
|
|
|
|
C3:void createjz();
|
|
|
|
|

|
|
|
|
|
C4:void printf();
|
|
|
|
|

|
|
|
|
|
C3:void Dijkstra(int v1,int v2);
|
|
|
|
|

|
|
|
|
|
int main()
|
|
|
|
|

|
|
|
|
|