当前位置:网站首页>Int and bit group turn to each other
Int and bit group turn to each other
2022-07-01 01:51:00 【Friendly, friend】
int Indexable array
#include <QDebug>
#include <bitset>
int main(int argc, char *argv[])
{
std::bitset<16> bits(1086);
bits[0] = 1;
for(std::size_t i = 0;i < bits.size();++i)
{
qDebug()<< bits[i];
}
}Digit group transfer int
Use :QBitArray::toUInt32():
QBitArray bits(16);
bits.setBit(15);
bits.setBit(3);
bits.setBit(2);
bits.setBit(1);
qDebug()<<bits.toUInt32(QSysInfo::BigEndian);
qDebug()<<bits.toUInt32(QSysInfo::LittleEndian);
QByteArray array = bits.bits();
qDebug()<<QString(array.toHex());
边栏推荐
- 远程办公如何保持高效协同,实现项目稳定增长 |社区征文
- Working for eight years as a programmer, but with a salary of three years after graduation, it's too late to be enlightened again
- The personal test is effective, and the JMeter desktop shortcut is quickly created
- Last day of the second quarter
- Handsontable数据网格组件
- (翻译)使用眉状文本提高标题点击率
- 思特奇加入openGauss开源社区,共同推动数据库产业生态发展
- 【agora】用户管理
- [无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大
- AS400 large factory interview
猜你喜欢
![[无线通信基础-15]:图解移动通信技术与应用发展-3- 数字通信2G GSM、CDMA、3G WDCMA/CDMA200/TD-SCDMA、4G LTE、5G NR概述](/img/22/1efa444220131359b06005f597c9db.png)
[无线通信基础-15]:图解移动通信技术与应用发展-3- 数字通信2G GSM、CDMA、3G WDCMA/CDMA200/TD-SCDMA、4G LTE、5G NR概述
2022年最新csdn涨薪技术栈-app自动化测试概述

短信在企业中的应用有哪些?

7-2 拼题A打卡奖励 dp

工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
![[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother](/img/fa/f9bad44147ba9af21183b7bd630e32.png)
[fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother
![[Qt5 basics] random number display](/img/1f/a3d310788dbc45c71d3b5c47d50a5b.png)
[Qt5 basics] random number display

哪有什么未来可期,不过是打工人临死前最后的幻想罢了

关于白盒测试,这些技巧你得游刃有余~

Selenium classic interview question - multi window switching solution
随机推荐
正向代理和反向代理快速理解
工厂+策略模式
gin_ gorm
Some essential differences
Handsontable数据网格组件
Log4j2 ThreadContext日志链路追踪
How to select securities companies? In addition, is it safe to open a mobile account?
Understanding and application of Qt5 layout in creation
C#生成putty格式的ppk文件(支持passphrase)
测试必备工具—Postman实战教程
微生物安全與健康,什麼是生物處理?
物业怎么发短信通知给业主?
3500 word summary: a complete set of skills that a qualified software testing engineer needs to master
What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
对象与对象变量
AS400 large factory interview
Thinking about business and investment
Handsontable data grid component
org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
(翻译)使用眉状文本提高标题点击率