#include 中sort的通常用法

  一、sort函数的时间复杂度为n*log2(n),执行效率较高。node   二、sort函数的形式为sort(first,end,method)//其中第三个参数可选。ios   三、若为两个参数,则sort的排序默认是从小到大,见以下例子数组 #include<iostream> #include<algorithm> using namespace std; int main()
相关文章
相关标签/搜索