Unicode
#include<iostream>
#include<string.h>
#include <tchar.h>
using namespace std;
int main() {
wchar_t arr = L'你好';//L是必加的
setlocale(LC_ALL,"Chs");//设置setlocale设置国家
wprintf(L"%lc\n", arr);
}
}
标签:arr,setlocale,字长,设置,宽位,include
From: https://www.cnblogs.com/tsqo/p/17287933.html