#define swap(x,y) {int s=x;x=y;y=s;}

换行的写法

#define swap(x, y)\
int temp = x;\
x = y;\
y = temp;

#define swap(x,y)  {x= x+y;y=x-y;x=x-y;}

换行的写法

#define swap(x,y)\

x=x+y;\

y=x-y;\

x=x-y;\

posted on 2009-09-28 10:38  maxweii  阅读(339)  评论(0编辑  收藏  举报