stl库 map #include<iostream> #include<map> using namespace std; map<char,int> map2; struct cmp { bool operator()(const char& lhs,const char& rhs) { return lhs<rhs; } }; bool fncomp(char lhs,char rhs) { return lhs<rhs; } int main() { map2['a']=10; map2['b']=60; map2['c'...