close
這也是出自於【C++設計實務-徹底研究】再加上牙齒小姐自己的註釋
型態 |
典型長度 | 最小範圍 |
---|---|---|
char | 8 | -127~127 |
unsigned char | 8 | 0~255 |
signed char | 8 | -127~127 |
int | 16或32 | -32,767~32,767 |
unsigned int | 16或32 | 0~65,535 |
signed int | 16或32 | -32,767~32,767 |
short int | 16 | -32,767~32,767 |
unsigned short int | 16 | 0~65,535 |
signed short int | 16 | -32,767~32,767 |
long int | 32 | -2,147,483,647~2,147,483,647 |
signed long int |
32 | -2,147,483,647~2,147,483,647 |
unsigned long int | 32 | 0~4,294,967,295 |
float | 32 | 六位數精確度 |
double | 64 | 八位數精確度 |
long double |
80 |
十位數精確度 |
這是匈牙利命名法的原則:
字首 |
資料形態 |
b |
BOOL |
c or ch |
Char |
clr |
COLORREF |
cx, cy |
水平或垂直距離 |
dw |
DWORD |
h |
Handle |
l |
LONG |
n |
Int |
p |
Pointer |
sz |
以零為結尾的字串 |
W |
WORD |
(待續)
全站熱搜
留言列表