Created
December 11, 2024 22:51
-
-
Save vsl-iil/3daeadae42739f0406d065590992f8e2 to your computer and use it in GitHub Desktop.
Починка вывода кириллицы для C/C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifdef _WIN32 | |
| #include <Windows.h> | |
| #endif | |
| // Это я обычно помещаю в main: | |
| #ifdef _WIN32 | |
| SetConsoleOutputCP(CP_UTF8); | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment