c++ - How to print wchar_t * in C console? -
i'm using netbeans 7.3 , mingw compiler
#include <iostream> using namespace std; int main() { wchar_t a[] = l"std"; wchar_t b[] = l"Стандарт"; wcout << a; wcout << b; // not printed return 0; }
output : std please me, how print?
std::locale::global(std::locale("")); std::wcout << l"Стандарт";
Comments
Post a Comment