C++ (Qt)UINT WINAPI GetConsoleCP(void); BOOL WINAPI SetConsoleCP(_In_ UINT wCodePageID);
C++ (Qt)#include <QCoreApplication>#include <QTextCodec>#include <iostream>#include <string> const char* convertFromUtfToLocal(const char* str){ return QString::fromUtf8(str).toLocal8Bit().data();} int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); QTextCodec::setCodecForLocale(QTextCodec::codecForName("IBM 866")); std::cout << convertFromUtfToLocal("Введите имя: "); std::string s; std::cin >> s; std::cout << convertFromUtfToLocal("Привет, ") << s << "!\n"; return a.exec();}