rec*_*gle 1 c++ arrays
我有一个包含多个整数的数组,是否有一种从高到低排序的常用方法?
ust*_*sta 27
#include <algorithm> #include <functional> int arr[ 5 ] = { 4, 1, 3, 2, 5 }; std::sort( arr, arr + 5, std::greater< int >() );
归档时间:
15 年 前
查看次数:
2814 次
最近记录: