如何在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 }