wcout不显示中文问题


#include "stdafx.h"
#include "iostream"
#include <wtypes.h>
using	namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	wcout.imbue(locale("chs"));       //加上这句话就行了
	wchar_t name[]=L"郑哲,王希"; //也可以用_T("郑哲,王希")
	wcout << L"郑哲" << name <<endl;
	return 0;
}


你可能感兴趣的:(wcout不显示中文问题)