#include
#include
#include
#include
#include
using namespace std;
int main()
{
string s("Hello there");
vector vector1(s.begin(), s.end());
// Fill first 5 positions of vector1 with X's:
fill(vector1.begin(), vector1.begin() + 5, 'X');
vector::iterator pos;
for (pos=vector1.begin(); pos!=vector1.end(); ++pos) {
cout << *pos << ' ';
}
return 0;
}
/*
X X X X X t h e r e
*/