C++ 高手请进union
{
BYTE short[8];
DWORD short;
DWORD long;
} SIZE;
program() = #SIZE;
trace.setDest(#SIZE);
请问 #SIZE是什么意思啊?
"#" 这里的用意是什么? 取地址?
多谢!
i doubt the correctness of the code
short and long are reserved keywords in c++ but they are
used as variable names here. this will certainly produce compilation errors.
# is used for preprocessing directives rather than an operator. by the way, & is the right one to take address.
used as variable names here. this will certainly produce compilation errors.
# is used for preprocessing directives rather than an operator. by the way, & is the right one to take address.