#include#include #include #include #define swap(t,x,y) { t _z;\ _z = y;\ y = x;\ x = _z; }int main(){ int a = 0,b = 1; swap(int,a,b); printf("%d %d\n",a,b); return 0;}
本文共 382 字,大约阅读时间需要 1 分钟。
#include#include #include #include #define swap(t,x,y) { t _z;\ _z = y;\ y = x;\ x = _z; }int main(){ int a = 0,b = 1; swap(int,a,b); printf("%d %d\n",a,b); return 0;}
转载于:https://www.cnblogs.com/batteryhp/p/5020453.html