#define S(a, b) a##b
来源:互联网 发布:诸暨市行知小学 编辑:程序博客网 时间:2024/05/21 18:37
#define S(a, b) a##b
int main()
{
printf("%d\n", S(3, 4));
printf("%d\n", S(5, 6));
return 0;
}
这个程序输出什么?
输出34
56
原来##居然就是连接符的意思,记之
0 0
- #define S(a, b) a##b
- #define f(a, b) a##b
- #define f(a, b) a##b
- #define f(a, b) a##b
- #define f(a, b) a##b
- #define ADD(a,b) a+b 的问题
- #define MyMacro(a,b,c) {a ## b ##c}
- #define MyMacro(a,b,c) {a ## b ##c}
- a>b?a:b
- B - A Bug's Life
- B-A Knight's Journey
- B/S、C/S、 A/S
- 解读宏#define SWAP(a,b)
- #define MAX(a, b, ……)
- S.OPEN SQL,CONN,A,B A,B参数
- a+b
- a+++b
- A + B
- 浅谈iOS中MVVM的架构设计与团队协作
- iOS 中 Cookie的简单使用
- C/C++中volatile关键字详解
- ScrollView 控件支持垂直滚动
- Android Map Api 使用和开发(1) 添加地图和界面
- #define S(a, b) a##b
- Scala开发教程(16): 没有“break”和“continue”的日子
- (NO.00003)iOS游戏简单的机器人投射游戏成形记(二十)
- ubuntu 14.04 登录界面无法进入系统
- C#中decimal.TryParse(, out ) 方法详解
- JAVA克隆
- oracle case when then end 语句
- 关于APK瘦身值得分享的一些经验
- Ubuntu下安装Qt4.8.6+QtCreator3.5.1