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);
}
}
#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);
}
}