本文介绍了人物问题?_的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。

我进入的Charachet将是?如果它是土耳其人。

Charachet that i enter will be ? if it is turkish character.

如果我输入ü,ı,ö,它将是?,?,?我该如何解决? 

If i enter ü, ı, ö, it will be ?,?,? How can i fix it ? 

谢谢。

 setlocale(LC_ALL, "Turkish"); 
 cout <<"Enter something";
   char sentences[2200];
   gets(sentences);
	cout << "You entered that: " << sentences<<endl;

推荐答案

你的两个选择是使用printf而不是cout。使用cout.imbue分别设置cout的语言环境。

Your two options are to use printf instead of cout. Use cout.imbue to set the locale of cout separately.


这篇关于人物问题?_的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 22:01