Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <locale>
- #include <windows.h>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "ru_RU.UTF-8");
- SetConsoleCP(1251);
- SetConsoleOutputCP(1251);
- string k = "килобайт";
- cout << k << endl;
- swap(k[3], k[5]);
- swap(k[4], k[5]);
- cout << k << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement