Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <locale>
- using namespace std;
- int main() {
- locale::global(locale(""));
- wcout.imbue(locale(".1251"));
- wcin.imbue(locale(".866"));
- wstring name;
- wcout << L"Как тебя зовут? ";
- wcin >> name;
- wcout << L"Добро пожаловать, " << name;
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment