wchar_t
suggest changeAn integer type large enough to represent all characters of the largest supported extended character set, also known as the wide-character set. (It is not portable to make the assumption that wchar_t uses any particular encoding, such as UTF-16.)
It is normally used for characters that do not fit in char. The standard does not require wchar_t to be larger than char, though it is on common implementations.
const wchar_t message_amharic[] = L"ሰላም ልዑል\n"; // Amharic for "hello, world\n"
const wchar_t message_chinese[] = L"你好,世界\n";// Chinese for "hello, world\n"
const wchar_t message_hebrew[] = L"שלום עולם\n"; //Hebrew for "hello, world\n"
const wchar_t message_russian[] = L"Привет мир\n"; //Russian for "hello, world\n"
const wchar_t message_tamil[] = L"ஹலோ உலகம்\n"; //Tamil for "hello, world\n"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents