Hungarian Notation()
10, 15 Microsoft 리 람 머 변 명명. MS내부 따 머들 리 램 딩 변 명명 례 .
러 보면 리 대 는 는 리 많 . 느 는 머는 물 밍 마 변명 따 램 배는 문들들 변 명명 대 대 못 는 .
마 런 변 명명 대 례를 . 러 변 명명 례를 면 독 높 뿐 를 들 변를 count cnt 민 는 리 릴 . -
------
------
10, 15 Microsoft 리 람 머 변 명명. MS내부 따 머들 리 램 딩 변 명명 례 .
러 보면 리 대 는 는 리 많 . 느 는 머는 물 밍 마 변명 따 램 배는 문들들 변 명명 대 대 못 는 .
마 런 변 명명 대 례를 . 러 변 명명 례를 면 독 높 뿐 를 들 변를 count cnt 민 는 리 릴 . -
------
Prefix | Type | Description | Example |
b | bool | any boolean type | bool bTrue |
c | char | character type | char cLetter |
i | int | integer for index | int iCars |
n | int | number, quantity | int nNum |
l | long | long type | long lDistance |
u | unsigned | unsigned type(4byte) | unsigned uPercent |
w | WORD | unsigned word(2byte) | WORD wCnt |
dw | DWORD | unsigned double word(4byte) | DWORD dwLength |
d | double | double floating point | double dPercent |
f | float | floating point | float fPercent |
s | static | a static variable | static short ssChoice |
rg | array | stands for range | float rgfTemp16 |
p | * | any pointer | int *piAddr |
sz | * | null terminated string of characters | char szText16 |
pfn | * | function pointer | int (*pifnFunc1)(int x, int y) |
t | struct | a user defined type | ... |
e | enum | variable which takes enumerated values | ... |
E | enum | Enumerated type | ... |
g_ | Global | Global Variable | String *g_psBuffer |
m_ | Member | class private member variable | int m_iMember |
k | constant formal parameter | ... | void vFunc(const long klGalaxies) |
r | reference formal parameter | ... | void vFunc(long &rlGalaxies) |
str | String | string class(C++) | String strName |
prg | ... | dynamically allocated array | char *prgGrades |
h | handle | handle to something | hMenu |
x/y | ... | used as size | int xWitdth, yHeight |