什么是#define XYZ((DWORD)0x000000FAL) [英] what is #define XYZ ((DWORD)0x000000FAL)
本文介绍了什么是#define XYZ((DWORD)0x000000FAL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
作为Iam是vc ++的新手,
谁能帮我什么
#define XYZ((DWORD)0x000000FAL)?
谢谢.
As Iam new to vc++,
can any one help me what is
#define XYZ ((DWORD)0x000000FAL) ?
Thanks.
推荐答案
#define
是预编译指令,它将符号定义为特定值.它类似于变量声明,但是您不能更改它. (还有更多内容,请参见 ^ ]以获得更多详细信息)
XYZ
是您正在定义的符号-如果需要,则为变量名.
((DWORD)0x000000FAL)
是您要定义的XYZ值,在这种情况下,该DWORD常量值适合LONG并且具有十六进制值FA
每次编译器看到XYZ
时,它将用((DWORD)0x000000FAL)
#define
is a pre-compilation instruction which defines a symbol to be a specific value. It''s similar to a variable declaration but you can''t change it. (There is more to it than that, see #define[^] for a lot more details)
XYZ
is the symbol that you are defining - the variable name if you want.
((DWORD)0x000000FAL)
is the value that you are defining XYZ to be, in this case a DWORD constant value that fits in a LONG and has teh hexadecimal value FA
Each time the compiler seesXYZ
it will replace it with((DWORD)0x000000FAL)
这篇关于什么是#define XYZ((DWORD)0x000000FAL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文