什么是#define XYZ((DWORD)0x000000FAL) [英] what is #define XYZ ((DWORD)0x000000FAL)

查看:62
本文介绍了什么是#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是预编译指令,它将符号定义为特定值.它类似于变量声明,但是您不能更改它. (还有更多内容,请参见
#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 sees XYZ it will replace it with ((DWORD)0x000000FAL)


这篇关于什么是#define XYZ((DWORD)0x000000FAL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆