清爽咖啡豆

文章
6
资源
0
加入时间
3年1月10天

C++ 用宏实现swap(a,b)

#include <iostream>using namespace std;#define SWAP(a,b) a^=b,b^=a,a^=bint main(void){ int x = 2,y=3; SWAP(x,y); cout << x << ',' << y << endl; return 0...