Chinaunix首页 | 论坛 | 博客
  • 博客访问: 177151
  • 博文数量: 37
  • 博客积分: 1367
  • 博客等级: 中尉
  • 技术积分: 465
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-06 17:41
文章分类

全部博文(37)

文章存档

2015年(1)

2012年(17)

2011年(10)

2010年(1)

2009年(8)

我的朋友

分类: C/C++

2011-10-28 19:25:23

#define hello(abc) printf("the name of abc is %s\n", #abc)
上面宏定义中的"#abc"就是"abc".
比如:
int nihao = 9;
hello(nihao);
则打印的信息就是:the name of abc is nihao。
阅读(877) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~