基本数据类型总结

来源:互联网 发布:驾驶证ps软件 编辑:程序博客网 时间:2024/06/06 00:55

基本数据类型 类型 类型说明 使用说明 整形 Integer 标准数据类型,使用前不必定义 实型 Reall 标准数据类型,使用前不必定义 字符型 Character 标准数据类型,使用前不必定义 字符串型 String 标准数据类型,使用前不必定义 布尔型 Boolean 标准数据类型,使用前不必定义 枚举型 Enumerated 高级数据类型,先定义后使用 子界型 Subrange 高级数据类型,先定义后使用 集合型 Set 高级数据类型,先定义后使用 数据类型 Aray 高级数据类型,先定义后使用 文件类型 File 高级数据类型,先定义后使用 记录类型 Record 高级数据类型,先定义后使用 类类型 Class 高级数据类型,先定义后使用 类引用类型 Class Reference 接口类型 Interface 高级数据类型,先定义后使用 指针类型 Pointer 高级数据类型,先定义后使用 过程类型 Procedural 高级数据类型,先定义后使用 可变类型 Variant 高级数据类型,先定义后使用
整形数据 类型 类型说名符 字节数 取值范围(中式) (国际) 整型 Integer 4 -21’4748’3648~21’4748’3647 -2,147,483,648~2,147,483,647 序数型 Cardinal 4 0~42’9496’7295 0~4,294,967,295 短整型 ShortInt 1 -128~127 -128~127 长整型 LongInt 4 -21’4748’3648~21’4748’3647 -2,147,483,648~2,147,483,647 小整型 SmallInt 2 -3’2768~3’2767 -32,768~32,767 64位整数 Int64 8 -2^63次方~2^63次方 -2^63次方~2^-63次方 字型 Word 2 0~6’5535 0~65,535 长字型 LongWord 4 0~42’9496’7295 0~4,294,967,295 字节型 Byte 1 0~255 0~255
实型数据 类型 类型说明符 字节数 取值范围 其他 单精度实型 Single 4 -3.4*10^38方 ~-1.5*10^39方 -1.5*10^39方 ~3.4*10^38方 双精度实型 Double 8 -1.7*10^308方 ~-5.0*10^324方 -5.0*10^324方~1.7*10^308方 实型 Real 8 -1.7*10^308方 ~-5.0*10^324方 -5.0*10^324方~1.7*10^308方 扩展型 Extended 10 -1.1*10^4932方 ~-3.6*10^4951方 -3.6*10^4951方~1.1*10^4932方 货币型 Currency 8 -922’3372’0368’5477.5808~922’3372’0368’5477.5870 -922,337,203,685,477.580,8~922,337,203,685,477.5870
字符型数据 类型 名称 字节数 取值范围 字符型 Char 1(2) 扩展ANSI字符集 宽字符型 WideChar 2 UniCode字符集 Ansi字符型 AnsiChar 1 扩展ANSI字符集
字符串型数据 类型 类型说明符 最大长度 字符串型 String 2^31方个字符 短字符型 ShortString 255个字符 长字符串型 Ansisting 2^31方个字符 宽字符串型 WideSring 2^30方个字符
布尔形数据 类型 类型说明符 字节数 取值 布尔型 Boolean 1 只能为0(False)或1(True) 长布尔型 LongBOOl 4 0(False)或非0(True) 宽布尔型 WideBool 2 0(False)或非0(True) 字节布尔型 ByteBool 1 0(False)或非0(True)
65个保留字 and array as asm begin class const constructor destructor dispinterface do downto else end except file finalization finally for function if implementation in inherited initialization interface is label library mod not object of or out procedure program property faise record resourcestring set shl shr string threadvar to try type unit uses var while with xor
39个指令符 absolute abstract assembler automated cdecl default dispid dynamic export external forward implements index message name nodefault overload override pachage pascal protected public published read readonly reintroduce requies resident safecall stdcall virtual write writeonly
0 0
原创粉丝点击