C++ / 资源 · 2025年4月13日 18 1

交换函数

void swap(int &a,int &b){
  int c=a;
  a=b;
  b=c;
}

项目中导入,关键词 swap()