C++ replace,replace_if,replace_copy,replace_copy_if
#include#include#include#include#includeusingnamespacestd;intmain(){arrayt1={3,5,7,11,13,17,19,23};arrayt2;//将容器中3替换成5replace(t1.begin(),t1.end(),3,5);//将所有小于15的替换成5replace_if(t1.begin(),t1.end(),[](i