← Back to team overview

millennium-dev team mailing list archive

[Merge] lp:~sequba/libmillennium/bug1197819 into lp:libmillennium

 

Jakub Sękowski has proposed merging lp:~sequba/libmillennium/bug1197819 into lp:libmillennium.

Requested reviews:
  Millennium Developers (millennium-dev)
Related bugs:
  Bug #1197819 in libMillennium: "Program nie demonstruje, że potrafi wypisać liczby odwrotnie"
  https://bugs.launchpad.net/libmillennium/+bug/1197819

For more details, see:
https://code.launchpad.net/~sequba/libmillennium/bug1197819/+merge/173388

Dopisałem wyswietlanie liczb w odwrotnej kolejności (Bug #1197819).

Chciałem przećwiczyć robienie MP. Mam nadzieję, że teraz dobrze...
-- 
https://code.launchpad.net/~sequba/libmillennium/bug1197819/+merge/173388
Your team Millennium Developers is requested to review the proposed merge of lp:~sequba/libmillennium/bug1197819 into lp:libmillennium.
=== modified file 'interactions.cpp'
--- interactions.cpp	2013-07-05 21:47:52 +0000
+++ interactions.cpp	2013-07-08 00:33:24 +0000
@@ -18,3 +18,10 @@
     }
     std::cout << std::endl;
 }
+
+void print_some_numbers_reversed() {
+	std::cout << "How about printing some numbers in reversed order?" << std::endl;
+	for(int i=numbers_to_be_displayed ; i > 0 ; i--)
+		std::cout << i << " ";
+	std::cout << std::endl;
+}

=== modified file 'interactions.hpp'
--- interactions.hpp	2013-07-05 21:47:52 +0000
+++ interactions.hpp	2013-07-08 00:33:24 +0000
@@ -5,6 +5,7 @@
 bool guessing_game();
 void congratulate();
 void print_some_numbers();
+void print_some_numbers_reversed();
 
 const int best_number_ever = 43;
 const int numbers_to_be_displayed = 12;

=== modified file 'main.cpp'
--- main.cpp	2013-07-07 19:14:43 +0000
+++ main.cpp	2013-07-08 00:33:24 +0000
@@ -10,6 +10,7 @@
         congratulate();
     }
     print_some_numbers();
+	print_some_numbers_reversed();
     present_users_name();
     farewell();
 }