C++标准模板库——容器

1、排序

  #include <algorithm>

  #include <functional>

  sort(array.begin(), array.end(), less<int>());//升序排序  greater<int>()降序排序

posted @ 2018-08-25 00:58  雪落梅藏  阅读(142)  评论(0编辑  收藏  举报