Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <conio.h>
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <cmath>
- #include <string>
- void wypisz(int ile, std::string tekst);
- int main()
- {
- int ile;
- std::string tekst;
- std::cin >> ile;
- getline(std::cin, tekst);
- wypisz(ile, tekst);
- system("PAUSE");
- return 0;
- }
- void wypisz(int ile, std::string tekst)
- {
- for (int i = 0; i < ile; i++)
- std::cout << tekst << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement