C++ STL笔记
摘要:sort()快排函数 STL中,有一种函数,免去了你手打快排的繁琐(传说中的c党福利) 假如说现在有一个未经排序的数组a[],用sort函数可以很方便地将其排好序,具体程序段如下: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int a[]
阅读全文
posted @ 2020-01-29 22:26
posted @ 2020-01-29 22:26