Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main(void)
- {
- vector <int> v;
- v.push_back(1);
- v.push_back(2);
- v.push_back(3);
- v.push_back(4);
- cout << "aaaaa\n";
- for_each(v.begin(),v.end(), [](int i)->void{cout<< i << ", " <<endl;});
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement