c++宽字符
#include<iostream>
#include<stdlib.h>
#include<locale>
void main()
{
setlocale(LC_ALL, "chs");
wchar_t *p1 = L"1234re";
std::wcout << p1 << std::endl;
wchar_t *p2 = L"北京123456";
std::wcout << p2 << std::endl;
system("pause");
}
c++宽字符
#include<iostream>
#include<stdlib.h>
#include<locale>
void main()
{
setlocale(LC_ALL, "chs");
wchar_t *p1 = L"1234re";
std::wcout << p1 << std::endl;
wchar_t *p2 = L"北京123456";
std::wcout << p2 << std::endl;
system("pause");
}