0
我想在CodeBlocks中使用Unicode打印飛機符號。我發現飛機的代碼是\u2708
。所以,我想下面的代碼:使用Unicode C++的飛機符號
#include <iostream>
using namespace std;
int main() {
wchar_t a = '\u2708';
cout << a;
return 0;
}
它輸出40072
當我和焦
char a = '\u2708';
更換爲wchar_t我得到這個符號:ł
我真的卡住了,感謝您的幫助。
[如何在C++中打印Unicode字符?](http://stackoverflow.com/questions/12015571/how-to-print-unicode-character-in-c) – 2014-10-18 10:55:55