#include <iostream> #include <string> #include<locale> using namespace std; int i = 3; int main() { setlocale(LC_ALL, "zh_CN.UTF-8"); wchar_t a[] = L"你好"; wcout << a << endl; }
#include <iostream> #include <string> #include<locale> using namespace std; int i = 3; int main() { setlocale(LC_ALL, "zh_CN.UTF-8"); wchar_t a[] = L"你好"; wcout << a << endl; }
转载于:https://www.cnblogs.com/kaituorensheng/p/3641722.html