Настройка ввода-вывода русского текста в консольных приложениях Visual C++ 2010
Loading...
Date
Authors
ORCID
DOI
item.page.thesis.degree.name
item.page.thesis.degree.level
item.page.thesis.degree.discipline
item.page.thesis.degree.department
item.page.thesis.degree.grantor
item.page.thesis.degree.advisor
item.page.thesis.degree.committeeMember
Journal Title
Journal ISSN
Volume Title
Publisher
НТУ "ХПИ"
Abstract
Произведено сопоставление символов кодовых таблиц cp1251 и cp866, позволяющее анализировать ошибки некорректного ввода-вывода символов строк. Приведены способы русификации ввода-вывода в консольных приложениях Visual C++ в среде программирования Microsoft Visual Studio 2010 с использованием: 1) функции setlocale; 2) функций перекодировок CharToOemA и OemToCharA; 3) функций SetConsoleCP и SetConsoleOutputCP; 4) функций wcout.imbue() и wcin.imbue() в программах ввода-вывода широкосимвольных литералов. Изложение материала сопровождается примерами исходных кодов.
Comparison of characters by cp1251 and cp866 code pages for the purpose to analyze the errors of incorrect input/output of them is made. There are presented the different methods of input/output Russian localization in Visual C++ console applications in environment Microsoft Visual Studio 2010 with the use: 1) function setlocale; 2) conversion functions CharToOemA and OemToCharA; 3) functions SetConsoleCP and SetConsoleOutputCP; 4) functions wcout.imbue() and wcin.imbue() for input/output of wide character strings. The paper is accompanied by the examples of source codes.
Comparison of characters by cp1251 and cp866 code pages for the purpose to analyze the errors of incorrect input/output of them is made. There are presented the different methods of input/output Russian localization in Visual C++ console applications in environment Microsoft Visual Studio 2010 with the use: 1) function setlocale; 2) conversion functions CharToOemA and OemToCharA; 3) functions SetConsoleCP and SetConsoleOutputCP; 4) functions wcout.imbue() and wcin.imbue() for input/output of wide character strings. The paper is accompanied by the examples of source codes.
Description
Citation
Гринченко С. В. Настройка ввода-вывода русского текста в консольных приложениях Visual C++ 2010 / С. В. Грінченко // Вісник Нац. техн. ун-ту "ХПІ" : зб. наук. пр. Темат. вип. : Радіофізика та іоносфера = Bulletin of National Technical University "KhPI" : coll. of sci. papers. Ser. : Radiophysics and ionosphere. – Харків : НТУ "ХПІ", 2016. – № 34 (1206). – С. 34-40.
