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