2010년 10월 31일 일요일

델파이와 c++의 데이터 타입표

delphi data type c++ data type bytes range of value
Byte unsigned __int8 (1byte: unsigned) 0 to 255
ShortInt __int8 (1byte: signed) -127 to 127
Word unsigned __int16 (2byte, unsigned) 0 to 65,535
SmallInt
__int16
(2byte: signed) -32,768 to 32,767
LongWord
unsigned __int32
(4byte: unsigned) 0 to 4,294,967,295
unsigned int
unsigned long
Cardinal
unsigned __int32
LongInt
__int32
(4byte: signed) -2,147,483,648 to 2,147,483,647
int
unsigned long
Integer
__int32
Int64 __int64
(8byte: signed) -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
long long