void swap(int a,int b)
{
x ^= y;
y ^= x;
x ^= y;
}
交换数据无需中间值的方法
最新推荐文章于 2022-02-25 01:16:57 发布
void swap(int a,int b)
{
x ^= y;
y ^= x;
x ^= y;
}