数据类型 字节 数取值范围
char 1 -128到126
unsigned char 1 0到255
short(signed short int) 2 -32768~32767
unsigned short 2 0~65535
unsigned long 4 0~4294967295
unsigned int 4 同unsigned long
long(signed long int) 4 2147483648~2147483647
int 4 同long
float 4 3.4x10-38E~3.4x10+38E
double 8 1.7x10-308E~1.7x10+308E
bool 1 true或false