刷题常用函数 发表于 2017-08-20 | 分类于 刷题 algorithm accumlate : adjacent_find binary_search copy string s1="hello hengliy"; string s2="welcome"; copy(s1.begin(),s1.end()-1,s2.begin()+6); cout<<s2; //welcomh reverse reverse(array.begin(),array.end());