您的位置:首页 > 其它

一道与预处理有关的题目

2012-07-21 20:53 260 查看
在看雪看到了刘涛涛出的一道题:http://bbs.pediy.com/showthread.php?t=130889

过去曾经做过类似的,这里再给个解释的资料:

The # operator has a similar difficulty, by the way. If #x appears in a replacement list, where x is a macro parameter, the corresponding argument is not expanded. Thus, if N is a macro representing 10, and STR(x) has the replacement list #x, expanding STR(N)
yields "N", not "10".

这样你就知道TEXT Macro为什么要这样#define了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: