From 7a8edbf8223b610aa151d263be6f3be3a0ac230a Mon Sep 17 00:00:00 2001 From: easternDay <849919718@qq.com> Date: Tue, 19 Nov 2019 23:16:30 +0800 Subject: [PATCH] Fix some bug & Update README.md --- Graph/Dijkatra.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Graph/Dijkatra.cpp b/Graph/Dijkatra.cpp index 1e41489..bc89897 100644 --- a/Graph/Dijkatra.cpp +++ b/Graph/Dijkatra.cpp @@ -40,7 +40,7 @@ int main() //Get the adjacency matrix. cout << "Adjacency matrix:" << endl; - for (i = 0; i < VertexNum - 1; i++) + for (i = 0; i < VertexNum; i++) { for (int j = 0; j < VertexNum; j++) { @@ -101,6 +101,9 @@ int main() cout << "To " << lasPos + 1 << " min length " << lasPathLen << endl << endl; } + + system("pause"); + return 0; } //Display the martix -- GitLab