Estoy tratando de imprimir un carácter chino usando los tipos wchar_t, char16_t y char32_t, en vano.

Estoy tratando de imprimir el caracter chino usando los tiposwchar_t, char16_t ychar32_t, sin éxito (ejemplo en vivo)

#include <iostream>
int main()
{
    char x[] = "中";            // Chinese character with unicode point U+4E2D
    char y[] = u8"中";
    wchar_t z = L'中';
    char16_t b = u'\u4e2d';
    char32_t a = U'\U00004e2d';

    std::cout << x << '\n';     // Ok
    std::cout << y << '\n';     // Ok
    std::wcout << z << '\n';    // ?? 
    std::cout << a << '\n';     // prints the decimal number (20013) corresponding to the unicode point U+4E2D
    std::cout << b << '\n';     //             "                    "                   "
}

Respuestas a la pregunta(1)

Su respuesta a la pregunta