Przeglądaj źródła

Fixed newline in output (TS)

Jan Potocki 5 lat temu
rodzic
commit
6cab940785
2 zmienionych plików z 1 dodań i 2 usunięć
  1. 0
    2
      Graph.cpp
  2. 1
    0
      pea2plus.cpp

+ 0
- 2
Graph.cpp Wyświetl plik

@@ -693,6 +693,4 @@ void Graph::travellingSalesmanTabuSearchEngine(Graph &graph, unsigned tabuSteps,
693 693
         // Reset licznika iteracji przed restartem
694 694
         stopCounter = 0;
695 695
     }
696
-
697
-std::cout << std::endl;
698 696
 }

+ 1
- 0
pea2plus.cpp Wyświetl plik

@@ -448,6 +448,7 @@ int main(int argc, char *argv[])
448 448
                             cout << route.at(i) << '\t' << length << '\t' << distFromStart << endl;
449 449
                         }
450 450
 
451
+                        cout << endl;
451 452
                         cout << "Dlugosc trasy: " << distFromStart << endl;
452 453
                         cout << endl;
453 454
                         cout << "Czas wykonania algorytmu [s]: " << clock.read() << endl;

Ładowanie…
Anuluj
Zapisz