int wctob(wint_t wChar);
#include <cwchar> int main() { wchar_t waString[] = L"XoaX.net"; // Convert each character to a multibyte character for (int i = 0; i < 8; ++i) { int iChar = wctob(waString[i]); wprintf(L"\"%wc\" converted to \"%c\"\n", waString[i], (char)iChar); } // Keep the window open until "Enter" is pressed getwchar(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.