#include <iostream>
#include <string>
#include <clocale>
int main(int, char**)
{
std::setlocale(LC_ALL, "Russian");
std::wstring line = L"Здравствуй, мир!";
std::wcout << line << std::endl;
std::wcin >> line;
std::wcout << line << std::endl;
return 0;
}
Здравствуй, мир!
Привет
?аЁў?в
std::setlocale(LC_ALL, "Russian");