如何在ms-dos控制台中用C编写unicode字符波斯语?

前端之家收集整理的这篇文章主要介绍了如何在ms-dos控制台中用C编写unicode字符波斯语?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何在ms-dos中用c编写unicode字符波斯语?

cout<<“Helo world”<<“سلامجهان”;

#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
}
原文链接:https://www.f2er.com/windows/364510.html

猜你在找的Windows相关文章