char 转 string
stringstream ss;
ss<<ch;
string tmp;
ss>>tmp;
string str(1,'c');
string大小写转化
transform(strA.begin(), strA.end(), strA.begin(), ::toupper);
transform(strA.begin(), strA.end(), strA.begin(), ::tolower);
map 从大到小排序
multimap<int,int,greater<int> > mmp;
map<int,int,greater<int> > mmp;
multimap 没有[]操作
第K大的数
vector<pair<int, int>> v;
nth_element(v.begin(),v.begin()+i, v.end(), [](pair<int,int> a, pair<int,int>b){
return a.second>=b.second;
});