#include #include #include #include #include using namespace std; //myAlgo_fill_n1.cpp int main() { ostream_iterator< int > output( cout, " " ); vector Vint1(6,4); cout<<" " ; copy( Vint1.begin(), Vint1.end(), output ); cout << "\n----ostream_iterator output ----\n"; fill_n(Vint1.begin()+1,2,3); cout<<" " ; copy( Vint1.begin(), Vint1.end(), output ); // fill_n(Vint1.begin()+2,3,5); cout<<"\n " ; copy( Vint1.begin(), Vint1.end(), output ); // fill_n(Vint1.begin()+4,1,7); cout<<"\n " ; copy( Vint1.begin(), Vint1.end(), output ); // return 0; }