一个名为v的vector中,降序排序用法如下:. sort(v.begin(), v.end(),greater<int>());. 自定义类型排序:. bool SortByM1( const Test &v1, ...
確定! 回上一頁