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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -