Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <iostream>
- int main()
- {
- std::vector< int > Tall;
- for( int i = 1; i <= 10; ++i )
- Tall.push_back( i );
- std::for_each( Tall.cbegin(), Tall.cend(),
- ^( int n )
- {
- std::cout << 2*n << std::endl;
- } );
- return 0;
- }
Add Comment
Please, Sign In to add comment