首页 > 编程语言 > 详细

数据类型表(DELPHI、C++)

时间:2019-03-11 11:29:46      阅读:173      评论:0      收藏:0      [点我收藏+]
delphi整型数据表
Integer -2147483648..2147483647 signed 32-bit
Cardinal 0..4294967295 unsigned 32-bit
Shortint -128..127 signed 8-bit
Smallint -32768..32767  signed 16-bit
Longint -2147483648..2147483647 signed 32-bit
Int64 -2^63..2^63? signed 64-bit
Byte 0..255 unsigned 8-bit
Word  0..65535  unsigned 16-bit
Longword 0..4294967295 unsigned 32-bit
       

 

 

 

 

 

 

 

 

 

 

 

C++
char -128 到 127 或者 0 到 255   1 个字节
unsigned char 0 到 255   1 个字节
signed char -128 到 127   1 个字节
int -2147483648 到 2147483647   4 个字节
unsigned int 0 到 4294967295   4 个字节
signed int -2147483648 到 2147483647   4 个字节
short int -32768 到 32767   2 个字节
unsigned short int  0 到 65,535    2 个字节
 signed short int  -32768 到 32767    2 个字节
 long int  -9,223,372,036,854,775,808 到 9,223,372,036,854,775,807    8 个字节
signed long int -9,223,372,036,854,775,808 到 9,223,372,036,854,775,807   8 个字节
unsigned long int 0 to 18,446,744,073,709,551,615   8 个字节
float  +/- 3.4e +/- 38 (~7 个数字)   4 个字节
double +/- 1.7e +/- 308 (~15 个数字)   8 个字节
long double +/- 1.7e +/- 308 (~15 个数字)   16 个字节
wchar_t 2 或 4 个字节   1 个宽字符
       

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

结束:

数据类型表(DELPHI、C++)

原文:https://www.cnblogs.com/FKdelphi/p/10509078.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!