当前位置:网站首页>QT cmake pure C code calls the system console to input scanf and Chinese output garbled code
QT cmake pure C code calls the system console to input scanf and Chinese output garbled code
2022-06-26 01:05:00 【NIWODIY】
Qt Cmake pure C The code calls the system console to enter scanf And Chinese output garbled code
2020-11-20 15:57:19
System console output
When using the input function ,Qt Built in console .
Call the method of the system console , Click on the left side of the “ project ” Icon , The build and run interface appears , choice “ function ” Options , Check “ Run in terminal (Run in terminal)” that will do .
Chinese output garbled code
stay CMakeLists.txt Add the following code to
#dubug -g debugging GBK chinese
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fexec-charset=GBK")

边栏推荐
猜你喜欢

How product managers control the progress of product development

案例:绘制Matplotlib动态图
![Chapter V exercises (124, 678, 15, 19, 22) [microcomputer principles] [exercises]](/img/16/d67f38d32af6904a7d0be9f2e5be70.png)
Chapter V exercises (124, 678, 15, 19, 22) [microcomputer principles] [exercises]

智慧家——全家具功能

数组中的第K个最大元素

Music spectrum display toy -- implementation and application of FFT in stm32

Post ordered clue binary tree

LabVIEW开发监控聚变实验脉冲电源

Endnote IEEE Transactions on industrial electronics/tie/tpel reference format template

Unified gateway
随机推荐
Recognize map
Megacli common command collation
DPVS fullnat mode deployment
How product managers control the progress of product development
Preorder and middle order traversal of forest
ciscn_ 2019_ en_ two
Spark log analysis
mongodb
Nacos注册中心
C#使用MySql进行操作
Case: drawing Matplotlib dynamic graph
Zhihuijia - full furniture function
关于HC-12无线射频模块使用
Installation and startup of redis
. Net using access 2010 database
Vscode shortcut
Nacos registry
Penetration tool -burpsuite
jarvisoj_ level2_ x64
STM32 uses SPI mode to drive TFT-LCD optimization code of hx8347 scheme