为什么 wchar_t *a1=L"你好!!!!!"; cout<<*a1<<endl; 怎么输出 20320
http://unicode.org/
#include <iostream> #include <locale.h> using namespace std; int main() { setlocale(LC_ALL,"CHS"); wchar_t *a1=L"你好!!!!!"; wcout<<*a1<<endl; //或者 printf("%C", *a1); return 0; }
15,440
社区成员
58,167
社区内容
加载中
试试用AI创作助手写篇文章吧