#include
#include
#include // for find
#include
using namespace std;
int main()
{
string s("It is him.");
vector vector1(s.begin(), s.end());
ostream_iterator out(cout, " ");
vector::iterator i = find(vector1.begin(), vector1.end(), 'i');
cout << "chars from the first i to the end: ";
copy(i, vector1.end(), out); cout << endl;
return 0;
}
/*
chars from the first i to the end: i s h i m .
*/