06 2015 档案

摘要:OutputDebugString("HELLO"); 阅读全文
posted @ 2015-06-27 19:01 小黑·.· 阅读(170) 评论(0) 推荐(0)
摘要:我们要检查a是否定义#if defined a#undef a#define a 200#endif上述语句检验a是否被定义,如果被定义,则用#undef语句解除定义,并重新定义a为200#ifndef a//如果a没有被定义#define a 100#endif#undef为解除定义#ifndef... 阅读全文
posted @ 2015-06-23 10:10 小黑·.· 阅读(9813) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-06-19 12:33 小黑·.· 阅读(127) 评论(0) 推荐(0)
摘要:很多地方看到使用一个宏#define WIN_ID(_ID_) WINID, 100这中间的逗号是 其实是 逗号表达式 右侧表达式宏里面还有一些其他的表符号表达式优先级:*> +> => ,#define f(x) x*x,x+x表达式 x*x,x+x 根据逗号表达式的右结合性,它取x+x... 阅读全文
posted @ 2015-06-19 09:30 小黑·.· 阅读(1714) 评论(0) 推荐(0)