疑问:wchar_t的使用方法。
wchar_t 的使用方法。wchar_t a = L'ù';
cout << a << endl;
我试图这样打印出拼音中的‘ù’.可结果为什么是一串数字?
我更想知道的是如何正确的使用wchar_t
#include <iostream> int main() { wchar_t a = L'ù'; std::wcout << a << std::endl; std::cin.get(); return 0; }结果竟然为空,这是为什么呢