更新,下面这table为最新的tokyo基本数据类型与C++的对照关系: Delphi to C++ types mapping Go Up to Support for Delphi Data Types and Language Concepts Below is a list of Delphi data types and the corresponding C++ data types: Delphi type defined in sysmac.h Platform Corres
delphi byte:1个字节. int/Integer: long: long long:8字节,64位 shortInt:2字节,16位 LongInt:4字节,32位 Int64:8字节,64位 word: float:4字节 double:8字节 Delphi C++ 字节Byte 位数Bit double double 8 32 single float 4 16 integer int 4 16 int64 long 8 32 short word
字符型:string 浮点型:real 整数:integer DELPHI的浮点数声明不是用float,而是用real(8个字节),single(8个字节,单精度浮点),double(16个字节,双精度浮点) 数组:array 一维 var a:array[1..5] of integer=(1,2,3,4,5) a:array[1..5] of string 二维 var MyArr: array[0..2, 0..2] of Integer; 动态定义数组 var arr:array o