就只是很简单的代码,结果打印出来的是一排问号:????????。我改了下字符集,不管是unicode还是多字节,都不能正常显示,我用的是vs2015。
void main()
{
cout << "输入字母" << endl;
}
巴扎黑2017-04-17 13:45:54
It is estimated that the encoding format of your source file is different from the format of the Windows console. You can try outputting to a file and then opening the output file. There should be no garbled characters.