+ 1

Tell me please. How can I make sure that Cyrillic is displayed in the output?

Cyrillic

25th Oct 2017, 8:20 PM
Дмитрий Кузнецов
Дмитрий Кузнецов - avatar
2 Antworten
+ 1
Use std::wstring instead of std::string
25th Oct 2017, 9:07 PM
aklex
aklex - avatar
+ 1
There is a much more *cleaner* way than std::wstring, indeed. You have to connect clocale library: #include <clocale> Then, in the main function, write one more - it enables you to output Cyrillic: setlocale(LC_ALL, "rus") After this, code as normal! Example: https://code.sololearn.com/c2l9Mx0Rw36C/?ref=app
18th Feb 2020, 7:25 AM
the ы
the ы - avatar