前端之家收集整理的这篇文章主要介绍了
如何在ms-dos控制台中用C编写unicode字符波斯语?,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何在ms-dos中用c编写unicode字符波斯语?
cout<<“Helo world”<<“سلامجهان”;
@H_
301_7@#include <iostream>
#include <locale>
#include <string>
int main()
{
using namespace std;
wstring wcs = L"
中文";
locale old = wcout.imbue(locale("") ); // "" is environment's default locale
wcout<<wcs<<endl;
wcout.imbue(old ); // restore old locale
}