摘要: 1、调用的库:#include<algorithm>2、模板:sort(first_pointer,first_pointer+n,cmp) 第一个参数:数组的首地址 第二个参数:结束地址 第三个参数:设置sort的排序方法,默认为升序排序 代码示例: 1 #include<iostream> 2 阅读全文
posted @ 2021-01-28 00:28 LinSandwich 阅读(70) 评论(0) 推荐(0)