windows程序设计 匈牙利命名法
来源:互联网 发布:视知传媒 编辑:程序博客网 时间:2024/05/16 14:56
Hungarian Notation
Hungariannotation helps you avoid errors in your code before they turn into bugs.Because the name of a variable describes both the use of a variable and itsdata type, you are much less likely to make coding errors involving mismatcheddata types.
The variablename prefixes I'll generally be using in this book are shown in the followingtable.
Prefix
Data Type
c
char orWCHAR or TCHAR
by
BYTE (unsignedchar)
n
short
i
int
x, y
int used asx-coordinate or y-coordinate
cx, cy
int used asx or y length; c stands for "count"
bor f
BOOL (int);f stands for "flag"
w
WORD(unsigned short)
l
LONG (long)
dw
DWORD(unsigned long)
fn
function
s
string
sz
stringterminated by 0 character
h
handle
p
pointer
0 0
- windows程序设计 匈牙利命名法
- windows程序设计——匈牙利命名法1.1
- 匈牙利命名法(Windows编程)
- 抨击匈牙利命名法
- 匈牙利命名法
- 匈牙利命名法收藏
- 匈牙利命名法
- 关匈牙利命名法
- 匈牙利命名法
- 匈牙利命名法
- 匈牙利命名法
- 匈牙利命名法收藏
- "匈牙利"命名法
- 匈牙利命名法
- 匈牙利命名法收藏
- 匈牙利命名法
- 匈牙利命名法
- 匈牙利命名法
- Fresco
- 没有杜拉拉的奇遇但是可以有程序员的安稳
- Median of Two Sorted Arrays -- LeetCode
- iOS ARC的使用
- arch/arm/kernel下的vmlinux.lds的生成
- windows程序设计 匈牙利命名法
- Android的学习笔记——EditText字符串过滤器InputFilter
- 求两个数的最大公约数
- 第二章第13题
- Hadoop作业提交多种方案具体流程详解
- 随机森林
- 算法篇-蛇形矩阵
- 前端实习生面经
- Linux下静态库_库的基本概念;如何生成静态库动态库;nm查看库中包含那些函数、ar生成静态库,查看库中包含那些.o文件、ldd查看程序依赖的.so文件;gcc/g++与库相关的参数-L,-l,-f