【c++】中文设置时间:2023-03-09 12:51:14 #include <iostream> #include <string> #include<locale> using namespace std; int i = ; int main() { setlocale(LC_ALL, "zh_CN.UTF-8"); wchar_t a[] = L"你好"; wcout << a << endl; }