//单行书写
#define swap(x,y) do{x=x+y;y=x-y;x=x-y;}while(0)
//多行书写
#define swap1(x,y) \
do{ \
x=x+y; \
y=x-y; \
x=x-y; \
}while(0)
行尾加 \ 符号作为连字符
参考
特此记录
anlog
2023年6月26日
书本原文


参考链接
anlog
2024年4月25日
https://blog.youkuaiyun.com/ZhaDeNianQu/article/details/120109899
4377

被折叠的 条评论
为什么被折叠?



