Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <locale>
  4. #include <windows.h>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.   setlocale(LC_ALL, "ru_RU.UTF-8");
  11.   SetConsoleCP(1251);
  12.   SetConsoleOutputCP(1251);
  13.   string k = "килобайт";
  14.   cout << k << endl;
  15.   swap(k[3], k[5]);
  16.   swap(k[4], k[5]);
  17.   cout << k << endl;
  18.   return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement