zoukankan
html css js c++ java
二进制显示整数
#include
<
iostream.h
>
void
displayBits(unsigned x)
{
unsigned m,i
=
1
<<
15
;
for
(m
=
1
; m
<=
16
; m
++
)
{
cout
<<
(x
&
i
?
'
1
'
:
'
0
'
);
x
<<=
1
;
if
(m
%
8
==
0
)
cout
<<
'
'
;
}
cout
<<
endl;
}
void
main()
{
unsigned x;
cout
<<
"
Enter an unsigned integer:
"
;
cin
>>
x;
displayBits(x);
cout
<<
sizeof
(unsigned);
}
查看全文
相关阅读:
获取jsonPath的节点名称
如何删除 macOS High Sierra 上的 swapfile
Prototype fake it till make it.观后感
intellij idea 初步环境熟悉
一个比较综合的项目--》>图片缓存,下拉刷新等
写的很好的博客->有关性能优化、图片缓存等
layout优化之-》viewStub,requestFocus,merge,include
有关ActionBar
android:installLocation 解析
Android开发效率—Eclipse快捷键
原文地址:https://www.cnblogs.com/junnyfeng/p/194574.html
最新文章
红帽考试学习第十五记
红帽考试学习第十四记
红帽考试学习第十三记
test
object detection--Decision Tree--VJ
pedestrian detection and re-identification 中的常见问题
最近看过的CV文章概要
Convolutional Neural Networks (卷积神经网络)
每周多学几条vim指令--(1)
Qt Designer的一些不直观的功能
热门文章
Qt 信号与槽
Qt 错误总结
C++ 学习笔记之---类继承
出门清单
好的网站
maven implements interface
div浏览器居中
docker ip地址
zheng win 环境搭建
机器学习好的博客
Copyright © 2011-2022 走看看