#include <iostream> using namespace std; int main() { wstring wstr = L"中国人"; wchar_t w = wstr[0]; char buf[12] = {0}; setlocale(LC_ALL, ".936"); wctomb(buf, w); cout<<buf<<endl; return 0; }
65,186
社区成员
250,526
社区内容
加载中
试试用AI创作助手写篇文章吧