- 迭代器定义
vector<int>::iterator iter;
- 升序排序
#include <algorithm>
sort(arr.begin(), arr.end(), greater<int>()); //less<int>()
- 字符串变小写
#include <algorithm>
#include <cmath>
transform(s1.begin(), s1.end(), s1.begin(), ::tolower); //toupper
vector<int>::iterator iter;
#include <algorithm>
sort(arr.begin(), arr.end(), greater<int>()); //less<int>()
#include <algorithm>
#include <cmath>
transform(s1.begin(), s1.end(), s1.begin(), ::tolower); //toupper