#define SWAP(t,a,b) do{ t c = a; \ a = b; b = c; }while(0); void main() { int a=1,b=2; SWAP(int,a,b); }
原文地址:https://www.cnblogs.com/judes/p/10230410.html
时间: 2024-11-01 20:06:19
#define SWAP(t,a,b) do{ t c = a; \ a = b; b = c; }while(0); void main() { int a=1,b=2; SWAP(int,a,b); }
原文地址:https://www.cnblogs.com/judes/p/10230410.html