replace_copy « STL Algorithms Modifying sequence operations « C++






1.std::replace_copy
2.Use replace_copy to print all elements with value 5 replaced with 55