十六进制的算法(国外英文资料).doc

  1. 1、本文档共25页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
十六进制的算法(国外英文资料)

十六进制的算法(国外英文资料) Is A representation method of data in computer. Daily in decimal notation is different with us. It is composed of 0-9, A - F,. And the corresponding relation of decimal is: 0-9 corresponding 0-9; A - F corresponding 10-15; The number of Ns is going to be equal to 0 minus N minus 1, which is more than 9 in the letter A minus F Such as: The decimal system of 32 is the hexadecimal system: 20 Hexadecimal 32 represented as decimal is: 3 x 16 ^ 1 + 2 x 16 ^ 0 = 50 Why is octal and hexadecimal required? In programming, we often use a decimal system... After all, C/C + + is a high-level language. Such as: Int a = 100, b = 99; However, because the data is represented in the computer, in the end, in binary form, sometimes binary can be used to solve the problem more visually. But the binary is too long. For example, the int type occupies 4 bytes, 32 bits. For example, 100, the binary representation of type int will be: 0000 0000 0000 0000 0110 0000 No one would like to think or operate in the face of such a long number. Therefore, C C + + does not provide a way to write binary Numbers directly in code. You can solve this problem by using 16 or 8. Because the larger the system, the shorter the number of expressions. But why should it be 16 or 8, and not others, such as 9 or 20? 2, 8, 16, thats 2 to the 1 to the third power, to the fourth power. This allows the three types of systems to convert very directly to one another. The system of 8 or 16 reduces the binary number, but keeps the expression of the binary number. You can find this in the next section on conversion. The Numbers of 6.2, 8, and hexadecimal Numbers are converted to decimal Numbers The 6.2.1 binary is converted to decimal number The power of the binary number 0 is 2 to the 0, the first digit is 2 to the 1... So, we have a binary number: 0110 0100, which is converted into a decimal system: Here are the vertical: 0110 0100 is converted into decimal 0 0 * 2 ^ 0 = 0 The first bit 0 * 2 ^ 1 = 0 2nd 1

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档