📜  排序向量 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:48.830000             🧑  作者: Mango

代码示例5
// C++ program to sort a vector in non-decreasing
// order.
#include 
using namespace std;
 
int main()
{
    vector v{ 1, 5, 8, 9, 6, 7, 3, 4, 2, 0 };
 
    sort(v.begin(), v.end());

    return 0;
}