啊哈磊_编程从这里起步
标题:
我就想说,为什么输入中文运行之后会是乱码
[打印本页]
作者:
换心呀
时间:
2019-3-3 00:48
标题:
我就想说,为什么输入中文运行之后会是乱码
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{ cout <<"你猜啊";
return 0;
}
复制代码
作者:
Forinser
时间:
2019-3-5 05:56
因为ASCII里边没有中文
可以这么写(应该是的):
cout << _T("你猜啊");
或者用printf函数
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2