c++ 标签

C++ Primer 手记

  |   0 评论   |   0 浏览

1.数据类型 1.1 类型/字宽 1.bool 2.char 8bit wchar_t 16bit char16_t 16bit char32_t 32bit short 16bit int 16bit long 32bit long long 64bit float 6 位有效数字 double 10 位有效数字 long doubel 10 位有效数字 可寻址最小内存块为 “字节” 8bit = 1byte 存储的基本单元为“字” 1 word = 32/64bit = 4/8bytes float = 1 word = 32bit = 4bytes double = 2 word = 64bit = 8bytes long double = 3word - 4word = 96-128 bit = 12 - 16 bytes signed +/-/0 unsigned +/0 int,short,long,long long -> singed 8bit unsigned char 00000000 - 11111111 : 0-255 8bit signed char 111....