Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit aa24b26

Browse files
committed
Fix line endings
1 parent ca29420 commit aa24b26

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

DirectedGraph.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ std::string DirectedGraph::dijkstrasAlgorithmOnMatrix(int beginVertex, int endVe
300300
shortestPath = pathLength[endVertex];
301301

302302
if (shortestPath == ULONG_MAX) {
303-
output += "Droga pomiedzy wybranymi wierzcholkami nie istnieje!\n\n"
303+
output += "Droga pomiedzy wybranymi wierzcholkami nie istnieje!\n\n";
304304
} else {
305305
output =
306306
"Najkrotsza droga z wierzch.: " + to_string(beginVertex) + " do wierzch.: " + to_string(endVertex) +
@@ -321,7 +321,7 @@ std::string DirectedGraph::dijkstrasAlgorithmOnMatrix(int beginVertex, int endVe
321321

322322
output += "Najkrotsza droga do innych wierzcholkow: \n";
323323
output += "W | Dlugosc\n";
324-
output += "------------------";
324+
output += "------------------\n";
325325
for (int i = 0; i < numberOfVertices; i++) {
326326
shortestPath = pathLength[i];
327327

@@ -403,7 +403,7 @@ std::string DirectedGraph::dijkstrasAlgorithmOnList(int beginVertex, int endVert
403403
shortestPath = pathLength[endVertex];
404404

405405
if (shortestPath == ULONG_MAX) {
406-
output += "Droga pomiedzy wybranymi wierzcholkami nie istnieje!\n\n"
406+
output += "Droga pomiedzy wybranymi wierzcholkami nie istnieje!\n\n";
407407
} else {
408408
output =
409409
"Najkrotsza droga z wierzch.: " + to_string(beginVertex) + " do wierzch.: " + to_string(endVertex) +
@@ -424,7 +424,7 @@ std::string DirectedGraph::dijkstrasAlgorithmOnList(int beginVertex, int endVert
424424

425425
output += "Najkrotsza droga do innych wierzcholkow: \n";
426426
output += "W | Dlugosc\n";
427-
output += "------------------";
427+
output += "------------------\n";
428428
for (int i = 0; i < numberOfVertices; i++) {
429429
shortestPath = pathLength[i];
430430

0 commit comments

Comments
 (0)