Sort(start,end,cmp)
(1)start表示要排序数组的起始地址;
(2)end表示数组结束地址的下一位;
(3)cmp用于规定排序的方法,可不填,默认升序。
该函数必须在C++文件中使用
#include <algorithm>
#include <iostream>
#include <cstring>
using namespace std;
Sort(start,end,cmp)
(1)start表示要排序数组的起始地址;
(2)end表示数组结束地址的下一位;
(3)cmp用于规定排序的方法,可不填,默认升序。
该函数必须在C++文件中使用
#include <algorithm>
#include <iostream>
#include <cstring>
using namespace std;