当前位置:网站首页>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")

边栏推荐
- 返回值为Object型方法调用equals()
- 认识map
- ADC acquisition noise and comparison between RMS filter and Kalman filter
- vite打包构建时 @charset utf-8警告问题处理;
- JS逆向案例:破解登录密码
- Permission design = function permission + Data permission
- Cartoon shader
- Computer network knowledge summary (interview)
- STL tutorial 5-basic concepts of STL and the use of string and vector
- 马斯克 VS 乔布斯,谁是21世纪最伟大的创业家
猜你喜欢

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

Motor monitoring system based on MCGS and stm32

ETCD数据库源码分析——集群通信初始化

Summary of push-pull output and open drain output of STM32 and failure of analog IIC driving mlx90615

vite打包构建时 @charset utf-8警告问题处理;

Computer network knowledge summary (interview)

渗透工具-Burpsuite

.net使用Access 2010数据库

Redis之Strings命令

STM32 uses SPI mode to drive TFT-LCD optimization code of hx8347 scheme
随机推荐
C # operate with MySQL
C#线程池控制Semaphore
Ad20 (Altium designer) PCB highlight network
STM32 uses SPI mode to drive TFT-LCD optimization code of hx8347 scheme
213. house raiding II
jarvisoj_level2_x64
Electronic training.
Why is it best to use equals for integer comparisons
Optimized three-dimensional space positioning method and its fast implementation in C language
FreeRTOS+STM32L+ESP8266+MQTT协议传输温湿度数据到腾讯云物联网平台
[system architecture] - what are MDA architecture, ADL and DSSA
认识map
Preordered clue binary tree
Zhihuijia - full furniture function
DPVS fullnat mode deployment
填鸭数据即时收集解决方案资源
Redis strings command
Motor monitoring system based on MCGS and stm32
Openresty chapter 01 introduction and installation configuration
关于HC-12无线射频模块使用