Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1.  
  2. #include "stdafx.h"
  3. #include <Windows.h>
  4. #include <iostream>
  5. #include <math.h>
  6. #include <string>
  7.  
  8. using namespace std;
  9.  
  10. void pov(string s)
  11. {
  12.     for (int i = 0; i < s.length(); i++)
  13.     {
  14.         cout << s << endl;
  15.     }
  16. }
  17.  
  18. int main()
  19. {
  20.     SetConsoleCP(1251);
  21.     SetConsoleOutputCP(1251);
  22.     setlocale(LC_ALL, "Russian");
  23.     string str;
  24.     cout << "Введите слово: ";
  25.     getline(cin, str);
  26.     pov(str);
  27.     system("pause");
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement