#include<iostream> using std::wcout; using std::locale; using std::endl; void main() { wchar_t a[]=L"计算机"; wcout.imbue(locale("chinese")); wcout<<a[1] << endl; }