函数————swap

swap(vec[i],vec[j]);

交换两个元素。

posted @ 2019-07-05 11:06  Austin_anheqiao  阅读(180)  评论(0编辑  收藏  举报