出處 :
unsigned long -> dword
unsigned char -> byte
char -> char
uint -> dword
『delphi和c++資料型別對照表』
delphi 字長/值域 c++
shortint 8位有符號整型 signed char
smallint 16位有符號整型 short
longint 32位有符號整型 int
byte 8位無符號整型 unsigned char
word 16位無符號整型 unsigned short
integer 32位有符號整型 int
cardinal 32位無符號整型 unsigned int
boolean 真/假 bool
bytebool 真/假或8位無符號整型unsigned char
wordbool 真/假或16位無符號整型unsigned short
longbool 真/假或32位無符號整型bool (winapi)
ansichar 8位無符號字元 char
widechar 寬字編碼字元 wchar_t
char 8位無符號字元 char
ansistring delphi的字串類 ansistring 類
string[n] 老式的delphi字串, n = 1..255位元組smallstring模板類
shortstring 老式的delphi字串, 255位元組smallstring<255>
string delphi的ansistring類 ansistring
single 32位浮點數 float
double 64位浮點數 double
extended 80位浮點數 long double
real 32位浮點數 double
pointer 32無型別指標 void *
pchar 32位字元型指標 unsigned char *
pansichar 32位ansi型字元指標unsigned char *
comp 64位浮點數 comp 類
olevariant ole可變型別值 olevariant 類
Delphi資料型別
資料型別 1 常用型別 shortint char byte byte,unsigned short smallint short word unsigned short real48 6位元組浮點數 integer,longint int,long cardinal,longword dword ...
Delphi 和 C C 資料型別對照
delphi 資料型別 c c shorint 8位有符號整數 char byte 8位無符號整數 byte,unsigned short smallint 16位有符號整數 short word 16位無符號整數 unsigned short integer,longint 32位有符號整數 in...
Delphi 資料型別列表
delphi 資料型別列表 分類 範圍位元組 備註簡單型別 序數整數 integer 2147483648 2147483647 4有符號32位 cardinal 0 4294967295 4無符號32位 shortint 128 127 1有符號8位 allint 32768 32767 2有符號...