C++ examples for STL Algorithm:for_each
Click the following links for the tutorial for STL Algorithm and for_each.