#include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
void print(int elem)
{
cout << elem << " ";
}
int main(int argc, char** argv)
{
vector<int> myVector;
myVector.push_back(1);
myVector.push_back(2);
myVector.push_back(3);
myVector.push_back(4);
for_each(myVector.begin(), myVector.end(), &print);
transform(myVector.begin(), myVector.end(), myVector.begin(),bind2nd(plus<int>(), 100));
for_each(myVector.begin(), myVector.end(), &print);
cout << endl;
return (0);
}