Kaynağa Gözat

Fixed newline (part II)

Jan Potocki 5 yıl önce
ebeveyn
işleme
3691314819
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      pea2plus.cpp

+ 1
- 1
pea2plus.cpp Dosyayı Görüntüle

@@ -439,6 +439,7 @@ int main(int argc, char *argv[])
439 439
                         // Wyswietlenie trasy
440 440
                         unsigned distFromStart = 0;
441 441
                         unsigned length = 0;
442
+                        cout << endl;
442 443
                         cout << route.at(0) << '\t' << length << '\t' << distFromStart << endl;
443 444
                         for(int i = 1; i < route.size(); i++)
444 445
                         {
@@ -448,7 +449,6 @@ int main(int argc, char *argv[])
448 449
                             cout << route.at(i) << '\t' << length << '\t' << distFromStart << endl;
449 450
                         }
450 451
 
451
-                        cout << endl;
452 452
                         cout << "Dlugosc trasy: " << distFromStart << endl;
453 453
                         cout << endl;
454 454
                         cout << "Czas wykonania algorytmu [s]: " << clock.read() << endl;

Loading…
İptal
Kaydet