fill_n « STL Algorithms Modifying sequence operations « C++






1.Use the fill_n algorithms: Fill 3 more positions with Y's
2.Use std::fill_n to fill the first five elements of chars with 'A'
3.Use fill_n function to insert 'hello' nine times
4.Use fill_n function to replace all but two elements with 'hi'