記錄一些心得。
#define MySWAP(a, b) \ do { \ typeof (a) _temp = (a);\ (a) = (b); \ (b) = _temp; \ } while(false)int main(){ float a=1.33; float b=2.75; MySWAP(a,b);}
沒有留言:
張貼留言