반응형
헝가리언 표기법(Hungarian Notation)
변수들을 정의할 때 데이터형을 알아보기 쉽도록 접두어를 붙여 표기하는 것.
출처 : Visual C++ Programming PPT
변수들을 정의할 때 데이터형을 알아보기 쉽도록 접두어를 붙여 표기하는 것.
| 접두사 | 의미 | 접두사 | 의미 |
| a | Array | lp | Long Pointer |
| ai | Integer Array | lpfn | Function Pointer |
| b | Boolean | lpsz | String Pointer |
| by | Unsigned Char(Byte) | m | Data member of a class |
| c | Char | n | Short or Int |
| cb | Count of bytes | np | Near Pointer |
| cr | Color Reference Value | p | Pointer |
| cx, cy | Short(count of x, y length) | psz | String Pointer |
| dw | Unsigned long(dword) | s | String |
| f | Flag(On/Off) | sz | 0 terminated String(NULL) |
| fn | Function | tm | Text Metric |
| h | Handle | w | Unsigned Int(Word) |
| i | Integer | x, y | Short(x, y coordinate) |
| l | Long |
출처 : Visual C++ Programming PPT
반응형
'Devlopment > C,C++,Ruby,Python' 카테고리의 다른 글
| [VC++] Extern과 Const (0) | 2010.04.07 |
|---|---|
| [VC++] 스레드(Thread) 동기화 (0) | 2010.04.01 |
| [VC++] 다이어로그(Dialog) 도킹(Docking) 하기 (2) | 2010.03.25 |
| [VC++] 파일 입출력시 버퍼 크기 문제 (0) | 2010.03.16 |
| [VC++] 쓰레드 (0) | 2010.03.16 |
| VC++ Data Type (0) | 2010.03.12 |
| VC++ 컴파일/모드 (0) | 2010.03.12 |
| [VC++] MessageBox (0) | 2010.03.10 |
| [VC++] 프로세스간 통신(IPC) (0) | 2010.03.04 |
| [VC++] 다중문서 (0) | 2010.02.25 |