如何在C/C++中输出unicode字符
发布时间:2020-12-16 09:46:13 所属栏目:百科 来源:网络整理
导读:参见英文答案 Output unicode strings in Windows console app????????????????????????????????????11个 我在Windows控制台中输出unicode字符时遇到问题. 我使用Windows XP和代码块12.11与mingw32-g编译器. 使用C或C在Windows控制台中输出unicode字符的正确
参见英文答案 >
Output unicode strings in Windows console app????????????????????????????????????11个
我在Windows控制台中输出unicode字符时遇到问题. 我使用Windows XP和代码块12.11与mingw32-g编译器. 使用C或C在Windows控制台中输出unicode字符的正确方法是什么? 这是我的C代码: #include <iostream> #include <string> using namespace std; int main() { cout << "??????????" << endl; // doesn't work string s = "??????????"; cout << s << endl; // doesn't work return 0; } 提前致谢. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |