fill « STL Algorithms Modifying sequence operations « C++





1.Use the generic fill algorithms: Fill first 5 positions of vector1 with X's
2.Use std::fill to fill vector with chars
3.Use fill function to overwrite all elements with 'again'
4.Use fill function to replace the second and up to the last element but one with 'hmmm'