拓冰建站拓冰建站
首页 / 资讯中心 / 正文

Hello World and Test

学习C语言,探索并解决打印时一些额外问题.若直接输入#includestdio.hintmain(){printf(你好世界\n);printf(hello world);return0;}那么中文将不能正常输出,变为乱码,而下面的代码#includestdio.h#includeWindows.h//引入另一种头函数intmain(){SetConsoleOutputCP(CP_UTF8);//统一输出为utf8printf(你好世界\n);printf(hello world);return0;}能解决输出时候中文乱码的问题统一输出为utf8
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门