当前位置:网站首页>Binary conversion -- learning summary
Binary conversion -- learning summary
2022-04-22 07:51:00 【Happinessคิดถึง】
**
Update time :2022-03-14
**
Binary conversion reference :
2-32 -> 10
10 - > 2-32
Hexadecimal conversion
C++ Operator
Reference resources :
C++ Novice tutorial operator
2 Base number :1111 0000
128 64 32 16 8 4 2 1
10 Base number :240
16 Base number :f0
Displacement calculation :
A = 0011 1100
B = 0000 1101
A&B
result :0000 1100
To be right is to be right , Negative or positive , Negative is negative
Left displacement :
Grammar format : Numbers that need to be shifted << The number of shifts n
Operational rules : Move all numbers to the left by the corresponding number of digits in binary form , Move out of high position ( Abandon ), The low vacancy makes up 0. Equivalent to times 2 Of n Power
Right displacement :
Grammar format : Numbers that need to be shifted >> The number of shifts n
Operational rules : Move all numbers to the right by the corresponding number of digits in binary form , Move out low ( Abandon ), The vacancy in the high position is filled 0. Equivalent to divided by 2 Of n Power
Hexadecimal conversion : With 10 Hexadecimal is the reference , To switch
Example (ascii:1,10 Base number :49)ascii The form has
2:110001 --1 2 4 8 16 32, With 2 Increasing multiple of , At the end of it is 1.
8:61 -- Satisfy 8, Then enter 1 position .
16:31 -- Satisfy 16, Then enter 1 position .
版权声明
本文为[Happinessคิดถึง]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220623156469.html
边栏推荐
猜你喜欢
随机推荐
Unity gets the network and converts it to a timestamp
测试题及部分太空之战
【TCP/IP 二 链路层】
Unity ~ script life cycle
Distinction
List 交集、并集、去重、抽取、修改属性等常用操作
Problem A: 人脸识别
Saltstack practice
Visual Studio编译器使用总结
运行程序~自定义类似CMD命令打开非系统软件
QT动态翻译中英文语言
Unity读取excel 数据 并创建对应的json文件
同一个类中@Transactional 事务传播
js根据时间多少,计算该显示年月日
ActiveMQ的消息模式——队列模式
C#抽象类
Multithreading (thread class, runnable interface, callable interface, synchronized, lock, thread pool)
爬虫51job
多线程(Thread 类、Runnable 接口、Callable 接口、synchronized 、Lock、线程池)
VC调用控件









