练习·一键排序

填空练习 难度 1

#sort

STL 提供的一行排序函数叫什么?(需要 #include <algorithm>)

知识点讲解

sort(a, a+n) 把 a[0]~a[n-1] 从小到大排好。

来小码星球,动手写一遍 →