Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <conio.h>
  3. #include <iostream>
  4. #include <cstdlib>
  5. #include <ctime>
  6. #include <cmath>
  7. #include <string>
  8.  
  9.  
  10. void wypisz(int ile, std::string tekst);
  11.  
  12. int main()
  13. {
  14.     int ile;
  15.     std::string tekst;
  16.     std::cin >> ile;
  17.     getline(std::cin, tekst);
  18.     wypisz(ile, tekst);
  19.  
  20.     system("PAUSE");
  21.  
  22.     return 0;
  23. }
  24.  
  25. void wypisz(int ile, std::string tekst)
  26. {
  27.     for (int i = 0; i < ile; i++)
  28.         std::cout << tekst << std::endl;
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement