
22.02.2024, 10:31
|
|
Новичок
Регистрация: 20.12.2023
Сообщений: 13
С нами:
1264357
Репутация:
3
|
|
[QUOTE="chebocsar"]
почему русские символы каверкаются? локализация подключена в чем тогда проблема , никак не пойму(visual studio)
Код:
[CODE]
#include
#include
using namespace std;
void passportIndentification()
{
setlocale(LC_ALL, "rus");
int age;
string name;
cout > name;
string surname;
cout > surname;
cout > age;
string nation;
cout > nation;
string from;
cout > from;
string town;
cout > town;
cout
Код:
[CODE]
#include
#include
#include
#include
using namespace std;
void passportIndentification()
{
_setmode(_fileno(stdin), _O_U16TEXT);
_setmode(_fileno(stdout), _O_U16TEXT);
setlocale(LC_ALL, "rus");
int age;
wstring name;
wcout > name;
wstring surname;
wcout > surname;
wcout > age;
wstring nation;
wcout > nation;
wstring from;
wcout > from;
wstring town;
wcout > town;
wcout
|
|
|