当前位置:网站首页>Qt Cmake 纯C 代码调用系统控制台输入scanf 及 中文输出乱码
Qt Cmake 纯C 代码调用系统控制台输入scanf 及 中文输出乱码
2022-06-25 23:12:00 【NIWODIY】
Qt Cmake 纯C 代码调用系统控制台输入scanf 及 中文输出乱码
2020-11-20 15:57:19
系统控制台输出
当用输入功能时,Qt自带控制台。
调用系统控制台的方法,点击左侧 “项目” 图标,出现构建和运行界面,选择“运行”选项,勾选 “在终端中运行(Run in terminal)”即可。
中文输出乱码
在CMakeLists.txt 中添加如下代码
#dubug -g 调试 GBK 中文
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fexec-charset=GBK")

边栏推荐
- 基金开户安全吗?有没有什么风险?
- DPVS fullnat mode kept
- ASP.NET cache缓存的用法
- JS reverse case: cracking login password
- Solve STM32 operation μ Solution to sudden failure of task scheduling in c/os-ii system
- The cache page stores the initial parameters after the route jump under the react + router framework
- Nacos注册中心
- FIFO code implemented in C language
- . Net using access 2010 database
- 1-11solutions to common problems of VMware virtual machine
猜你喜欢

返回值为Object型方法调用equals()

Balanced binary tree AVL

Msp430f5529lp official board (red) can not debug the problem

ciscn_2019_en_2

. Net using access 2010 database

Vscode shortcut

Implementation notes of least square fitting conic in stm32

Modelsim simulation FFT core cannot be simulated solution (qsys)

mtb13_ Perform extract_ blend_ Super{candidate (primaryalternate) \u unique (nullable filtering \foreign\index\granulati

Compiler Telegram Desktop end (tdesktop) en utilisant vs2022
随机推荐
SVN
Making 3D romantic cool photo album [source code attached]
Blob
Solve STM32 operation μ Solution to sudden failure of task scheduling in c/os-ii system
jarvisoj_ level2_ x64
统一网关Gateway
Post ordered clue binary tree
Idea view unit test coverage
213. house raiding II
jarvisoj_level2_x64
. Net using access 2010 database
Phoenix index
Binary sort tree
[understanding of opportunity -30]: Guiguzi - internal "chapter - empathy, stand on the other side's position and narrow the psychological distance with the other side
AD20(Altium Designer) PCB 高亮网络
Unified gateway
接口的幂等性——详细谈谈接口的幂等即解决方案
C#使用MySql进行操作
Modelsim simulation FFT core cannot be simulated solution (qsys)
Mining pit record of modified field information in Dameng database