Advertisement
zopper

vector

Nov 19th, 2013
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6. int main(void)
  7. {
  8.         vector <int> v;
  9.         v.push_back(1);
  10.         v.push_back(2);
  11.         v.push_back(3);
  12.         v.push_back(4);
  13.         cout << "aaaaa\n";
  14.         for_each(v.begin(),v.end(), [](int i)->void{cout<< i << ", " <<endl;});
  15.         return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement