啊哈磊_编程从这里起步

标题: 我就想说,为什么输入中文运行之后会是乱码 [打印本页]

作者: 换心呀    时间: 2019-3-3 00:48
标题: 我就想说,为什么输入中文运行之后会是乱码
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4. int main()
  5. {   cout <<"你猜啊";
  6.    
  7.     return 0;
  8. }
复制代码

作者: Forinser    时间: 2019-3-5 05:56
因为ASCII里边没有中文
可以这么写(应该是的):
cout << _T("你猜啊");
或者用printf函数




欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/) Powered by Discuz! X3.2