c++ swap函数

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

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

posted @ 2018-02-08 11:13  Mr^Simon  阅读(1120)  评论(0编辑  收藏  举报