📅  最后修改于: 2022-03-11 14:44:49.210000             🧑  作者: Mango
#include
#include
int main()
{
std::array vec = { 1,2,3,4,5,6,7,8,9 };
std::sort(std::begin(vec),
std::end(vec),
[](int a, int b) {return a > b; });
for (auto item : vec)
std::cout << item << " ";
return 0;
}