📅  最后修改于: 2022-03-11 14:44:54.574000             🧑  作者: Mango
代码示例2
#include
#include
#include
int main()
{
std::vector vec = { 7, 3, 5, 1, 9 };
std::sort(vec.rbegin(), vec.rend());
// do anything
return 0;
}