标签:
##表示:把宏参数名与宏定义代码序列中的标识符连接在一起,形成一个新的标识符
#define test1(i) test(x##i)
int main()
{
int x1=1, x2=2, x3=3;
test1(1); // 相当于 test(x1)
test1(2); // 相当于 test(x2)
test1(3); // 相当于 test(x3)
return 0;
} http://www.waitingfy.com/archives/1763
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/fox64194167/article/details/48651241