SHARE
TWEET

Untitled

a guest Feb 1st, 2016 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <iostream>
  4. #include <vector>
  5.  
  6.  
  7. int main ()
  8. {
  9.  
  10.   std::vector<int> myvector;
  11.  
  12.   for (int i = 0; i <= 9999999; i++ )
  13.   {
  14.     myvector.push_back (i);
  15.   }
  16.  
  17.   /*
  18.   std::vector<int>::iterator it;
  19.   it = myvector.begin();
  20.  
  21.   for (it=myvector.begin(); it < myvector.end(); it++)
  22.   {
  23.     std::cout << *it << ' ';
  24.   }
  25.   */
  26.   return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top