swap(a,b)也就是把a和b的值互换。

头文件:#include<algorithm>,swap要加using namespace std;

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2021-12-12
  • 2021-06-16
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-28
  • 2022-03-07
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案