|
Prefix |
Data Type (Base Type) |
|---|---|
|
c |
char |
|
by |
BYTE (unsigned char) |
|
n |
short or int (refers to a number) |
|
i |
int |
|
x, y |
short (used as x-coordinate or y-coordinate, generally) |
|
cx, cy |
short (used to denote x or y lengths; c stands for count) |
|
b |
BOOL (int) |
|
w |
UINT (unsigned int) or WORD (unsignedWORD) |
|
l |
LONG (long) |
|
dw |
DWORD (unsigned long) |
|
fn |
Function pointer |
|
s |
String |
|
sz, str |
String terminated by 0 byte |
|
lp |
32-bit long pointer |
|
h |
Handle (used to refer to Windows objects) |
|
msg |
Message |
本文详细介绍了匈牙利命名法中的前缀代码规范,包括字符、整数、字符串等类型的变量命名约定。匈牙利命名法是一种编程规范,通过在变量名前加前缀来表明该变量的数据类型。
1531

被折叠的 条评论
为什么被折叠?



