当前位置:网站首页>Qdebug() print debugging information
Qdebug() print debugging information
2022-04-22 10:46:00 【Camellia Populus】
qDebug() Print debug information , The console application will print to the console .
#include <QDebug>
int num = 255;
qDebug(" Decimal system : %d", num); // Decimal output
qDebug(" octal : %o", num); // Octal output
qDebug(" Hexadecimal : %x",num); // Hexadecimal output
qreal PI = 3.14;
qDebug(" PI : %f", PI); // Floating point output
qreal price = 50000;
qDebug(" housing price : %e", price); // Scientific counting outputs
int rate = 75;
qDebug(" Alcohol concentration : %d%%", rate); // % Output
QString str = " Frenchman Zhang San ";
qDebug() << str; // Double quotation marks are displayed by default when outputting
qDebug().noquote() << str; // Output without double quotation marks
qDebug().quote() << str; // Display double quotation marks on output
qDebug() <<"["<<" Zhang San "<<"]"; // By default, spaces are displayed when outputting "[ Zhang San ]"
qDebug().nospace()<<"["<<" Zhang San "<<"]"; // Output without spaces "[ Zhang San ]"
qDebug().space() <<"["<<" Zhang San "<<"]"; // Display spaces on output "[ Zhang San ]"
Output results

版权声明
本文为[Camellia Populus]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221044346369.html
边栏推荐
- [required for design!] Common color matching table for Web Design
- Spa first screen loading optimization
- 点云配准(一)— ICP方法
- 001-MYSQL命令
- How does the project solve cross domain problems
- The wrong statistics of the table causes the optimizer to select the wrong execution plan
- Formdate save data
- Async function
- Slime 2022 展望:把 Istio 的复杂性塞入智能的黑盒
- 使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
猜你喜欢

110T oracle故障恢复

使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群

Spark 3. Source code analysis of wscg mechanism based on X

Secure remote access + secure file transfer + terminal simulation + Remote Management - Shanghai daoning united with Van Dyke to bring reliable and easy to configure software to IT industry personnel

在互联网+的背景下,企业如何创新客户服务?

数字化时代,企业运维面临现状及挑战分析解读

Dynamic visualization of data based on pyqt5

什么样的项目适合做自动化测试?

绿色节能建筑已是大势所趋

C language example 100 (IV)
随机推荐
什么时候起,软件测试面试都已经这么难了?
110t Oracle fault recovery
绿色节能建筑已是大势所趋
CISSP认证每日知识点(2022年4月21日)
ACID在MySQL里的底层怎么实现?
How to implement acid at the bottom of MySQL?
QT record of some problems in signal slot connection
The most detailed Kali system configuration and installation tutorial in the whole network. My mother will read it!
004-MYSQL的查询过程
Php get IP Limits submissions in minutes for verification code Getting too frequently
Article 84: the most important thing for investment is the safety framework: at the end of the pig cycle, animal husbandry has become the only definite plate in the two cities (framework thinking)
084 remote code execution of samba using cve-2017-7494 vulnerability
MySql5. 7.26 installation
Daily CISSP certification common mistakes (April 21, 2022)
async 函数
点云配准(一)— ICP方法
CISSP certified daily knowledge points (April 20, 2022)
P100 - clue penetration test using searchsploit
Devsecops software R & D security practice - Design
2022-04-19_函数(二)