for(typename std::set<T>::iterator it=v.begin();it!=v.end();it++) { cout <<*it ; } cout<<endl; } int main() { set<int> s1{9,8,1,2,3,4,5,6,5,6,7,7}; //自动排序,从小到大,剔除相同项 showset(s1); set<string> s2{"hello","sysy","school","hello"}; //字典序...