就只是很简单的代码,结果打印出来的是一排问号:????????。我改了下字符集,不管是unicode还是多字节,都不能正常显示,我用的是vs2015。
void main() { cout << "输入字母" << endl; }
认证0级讲师
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.
The console under windows uses gbk encoding. Your output is unicode.
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.
The console under windows uses gbk encoding. Your output is unicode.