Redian新闻
>
What syntax is this?(about macro)
avatar
What syntax is this?(about macro)# Programming - 葵花宝典
t*3
1
【 以下文字转载自 Family 讨论区 】
发信人: temp123 (ttt), 信区: Family
标 题: 怎么回答“It was nice to talk with you"???
发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
我一般是哼两声。是不是该说个”Me too"??
avatar
M*8
2
Given #define TRACE_ID(iD) case iD: return L#iD;
Should
TRACE_ID(WM_INPUT) = WM_INPUT
or
TRACE_ID(WM_INPUT) = LWM_INPUT /* L at the begining */
what does "L" do here?
Thank you,
avatar
o*l
3
same here
ditto
catch you later

【在 t*****3 的大作中提到】
: 【 以下文字转载自 Family 讨论区 】
: 发信人: temp123 (ttt), 信区: Family
: 标 题: 怎么回答“It was nice to talk with you"???
: 发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
: 我一般是哼两声。是不是该说个”Me too"??

avatar
r*r
4
the macro should be L##iD.
## is a "token pasting operator".
avatar
l*t
5
Same to u
take care

【在 t*****3 的大作中提到】
: 【 以下文字转载自 Family 讨论区 】
: 发信人: temp123 (ttt), 信区: Family
: 标 题: 怎么回答“It was nice to talk with you"???
: 发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
: 我一般是哼两声。是不是该说个”Me too"??

avatar
M*8
6
HI,
In one of MS's samples, it uses one #. Actually this is documented in
Visual Studio help document.
Ok, even ## is right, why do we need "L" in the front? I have seen
L"string" for unicode. Have not seen L##X though.
avatar
s*r
7
should it be "you too"?

【在 t*****3 的大作中提到】
: 【 以下文字转载自 Family 讨论区 】
: 发信人: temp123 (ttt), 信区: Family
: 标 题: 怎么回答“It was nice to talk with you"???
: 发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
: 我一般是哼两声。是不是该说个”Me too"??

avatar
K*n
8
#define TRACE_ID(iD) case iD: return L#iD;
TRACE_ID(WM_INPUT) gives your L"WM_INPUT"
# is called stringizing operator for preprocessor here
As for L macro:
In C, to make a string of wide characters, you need to prefix the string
with the letter "L".
avatar
l*t
9
seems no in this context.
perfect in "have a nice day!", u too

【在 s*********r 的大作中提到】
: should it be "you too"?
avatar
K*n
10

Apparently, instead of getting an iD number, by which you have to look up
its meaning, you gets a meaningful string.
This is a very useful trick to getting meaning out of a #define number.

【在 K*****n 的大作中提到】
: #define TRACE_ID(iD) case iD: return L#iD;
: TRACE_ID(WM_INPUT) gives your L"WM_INPUT"
: # is called stringizing operator for preprocessor here
: As for L macro:
: In C, to make a string of wide characters, you need to prefix the string
: with the letter "L".

avatar
n*g
11
"I am happy you can understand me."
Is that Okay?
avatar
f*n
12
I'll add a few more:
"It was nice talking with/to you"
-"The pleasure is all mine."
-"Vice versa."
-"Nice talking with/to you, too."
You may also optionally add "Thank you" to precede your response.
avatar
t*e
13
kill me!!

【在 n****g 的大作中提到】
: "I am happy you can understand me."
: Is that Okay?

avatar
m*t
14
simple:
My pleasure.

【在 t*****3 的大作中提到】
: 【 以下文字转载自 Family 讨论区 】
: 发信人: temp123 (ttt), 信区: Family
: 标 题: 怎么回答“It was nice to talk with you"???
: 发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
: 我一般是哼两声。是不是该说个”Me too"??

avatar
o*e
15
第二种回答很fancy 啊,下回试试,如果还能记得的话,咔咔

【在 f*********n 的大作中提到】
: I'll add a few more:
: "It was nice talking with/to you"
: -"The pleasure is all mine."
: -"Vice versa."
: -"Nice talking with/to you, too."
: You may also optionally add "Thank you" to precede your response.

avatar
o*l
16
not suitable for females
well, you may try and say it but i guess it will depend on to whom you're
speaking to.
if it was stud or newcastle don't do it
if it was netghost or friediceman i think it'd be alright

【在 o*********e 的大作中提到】
: 第二种回答很fancy 啊,下回试试,如果还能记得的话,咔咔
avatar
O*e
17
What about me?

【在 o********l 的大作中提到】
: not suitable for females
: well, you may try and say it but i guess it will depend on to whom you're
: speaking to.
: if it was stud or newcastle don't do it
: if it was netghost or friediceman i think it'd be alright

avatar
o*l
18
i dont' know
what about it?

【在 O******e 的大作中提到】
: What about me?
avatar
O*e
19
Me: "It was nice talking with you, O-Girl. Thanks for laughing
at my dumb jokes."
You: ________

【在 o********l 的大作中提到】
: i dont' know
: what about it?

avatar
o*l
20
what did you just call me?

【在 O******e 的大作中提到】
: Me: "It was nice talking with you, O-Girl. Thanks for laughing
: at my dumb jokes."
: You: ________

avatar
O*e
21
Did I say something wrong?

【在 o********l 的大作中提到】
: what did you just call me?
avatar
o*l
22
dumb?
that's what i saw
unhm

【在 O******e 的大作中提到】
: Did I say something wrong?
avatar
O*e
23
You've been staring at your monitor for too long.
Go outside, look at the sky, the mountains, take a break.
Reminds me of a DUMB joke from a cartoon.
Patient: "Doc, I think there is something wrong with my vision."
Optometrist: "Tell me what is wrong."
Patient: "Well, everywhere I look, I see these black lines."
Optometrist: "Let me take a look--is this better now?"
Patient: "Wow, Doc, what did you do? I can see clearly now!"
Optomitrist: "Let me give you the phone number of my barber..."

【在 o********l 的大作中提到】
: dumb?
: that's what i saw
: unhm

avatar
o*e
24
haha....lol....

【在 o********l 的大作中提到】
: not suitable for females
: well, you may try and say it but i guess it will depend on to whom you're
: speaking to.
: if it was stud or newcastle don't do it
: if it was netghost or friediceman i think it'd be alright

avatar
g*s
25
likewise

【在 t*****3 的大作中提到】
: 【 以下文字转载自 Family 讨论区 】
: 发信人: temp123 (ttt), 信区: Family
: 标 题: 怎么回答“It was nice to talk with you"???
: 发信站: BBS 未名空间站 (Thu Jul 31 12:59:58 2008)
: 我一般是哼两声。是不是该说个”Me too"??

avatar
f*g
26
注意一定要说you too,而不是me too。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。