当前位置:网站首页>Data storage 3
Data storage 3
2022-07-07 05:51:00 【It's Yi'an】
Part1:
With or without symbols operation Sleep(haomiao)(windows.h)for unsigned Cyclic sign change
character ’\0’
The operation with or without symbols is the same as the normal operation , The complement solves this problem , Make addition and subtraction unified . As long as it is not negative , With or without symbols , In the calculation process, only the scope problem and the output form problem can be considered .
Sleep() Dormancy function , Stop the program , Enter an integer representing milliseconds , stay Windows Header file .
Cyclic sign change , In a data type , No matter what number you enter , Its value will be in the range of this type . Such as 11111111+1=00000000, Start the cycle .
character ‘’\0’ In defining char of use = The assignment of number will be automatically followed by one , If you assign values to its elements one by one , Will not be automatically added , Use this time strlen() function , You will get a random value .
Part2:
floating-point %lf Scientific counting -1*s*M*2^E 1 8 23 1 11 52 E negative In the middle Take out E
Stored value True value E For zero E For all 1
We talked about that before , use 0101010…… To store all the data , Different rules mean different data types , How to formulate these regulations , It's not what we're talking about now . The same is true for floating-point types , The rule is -1*S*M*2^E, Where, it represents positive and negative ,1 Negative ,0 Being positive .M It's valid data ,E Is the exponential size . Such as 3.5 Expressed in binary as 11.1, The scientific counting method is 1.11*10^1; be S=0;M=1.11,E=1. Knowing these three data, you can store it in memory .32 In a (float) Use the first place to express S, The last eight digits indicate E, because E May be a negative , So add a middle value 2^7-1(127), When we store, the real value plus the intermediate value is the stored value .M The form of must be 1,xxxx…, Because of all M At the beginning 1, Therefore, when storing . The problem of storage has been solved , There are still some points to pay attention to when taking it out .
Pay attention to put it in. We are right M and E Did something , Take it out in reverse , There are two special cases :
E It's all zero , It's true at this time E by -127, It's a very small value , So we directly stipulate E by 1- In the middle , and M No more filling when taking out 1, But make up 0.
E For all 1, It's true at this time E by 128, This time means infinity .
边栏推荐
- 盘点国内有哪些EDA公司?
- 404 not found service cannot be reached in SAP WebService test
- 基于NCF的多模块协同实例
- 分布式事务介绍
- Dynamic memory management
- 980. 不同路径 III DFS
- Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
- SQL query: subtract the previous row from the next row and make corresponding calculations
- 拼多多新店如何获取免费流量,需要从哪些环节去优化,才能有效提升店内免费流量
- Three level menu data implementation, nested three-level menu data
猜你喜欢

Industrial Finance 3.0: financial technology of "dredging blood vessels"
上海字节面试问题及薪资福利

判断文件是否为DICOM文件

Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding

How does mapbox switch markup languages?

Get the way to optimize the one-stop worktable of customer service
![Paper reading [semantic tag enlarged xlnv model for video captioning]](/img/e3/633f6aac7a51ad7b3dc0e45dbe1f60.png)
Paper reading [semantic tag enlarged xlnv model for video captioning]

集群、分布式、微服務的區別和介紹

The 2022 China low / no code Market Research and model selection evaluation report was released
![[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation](/img/f6/cd307c03ea723e1fb6a0011b37d3ef.png)
[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
随机推荐
【Shell】清理nohup.out文件
4. Object mapping Mapster
Web Authentication API兼容版本信息
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
Red Hat安装内核头文件
R language [logic control] [mathematical operation]
Things about data storage 2
SQL query: subtract the previous row from the next row and make corresponding calculations
980. 不同路径 III DFS
线性回归
Five core elements of architecture design
Taobao commodity details page API interface, Taobao commodity list API interface, Taobao commodity sales API interface, Taobao app details API interface, Taobao details API interface
什么是消息队列?
Différenciation et introduction des services groupés, distribués et microservices
Go 语言的 Context 详解
Web architecture design process
集群、分布式、微服务的区别和介绍
How to improve website weight
架构设计的五个核心要素
Getting started with DES encryption