​wchar_t​​​输出用​​wcout​​。

#include <iostream>

using namespace std;

int main()
{
setlocale(LC_ALL, "chs");
wchar_t wc[] = L"中国";

wcout << wc << endl;

getchar();
return 0;
}

输出:

中国