+ 1
Tell me please. How can I make sure that Cyrillic is displayed in the output?
Cyrillic
2 Answers
+ 1
Use std::wstring instead of std::string
+ 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