Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. #include <vector>
  2.  
  3. // Exp. 1
  4. // #define PRE_SIZE 0
  5.  
  6. // Exp. 2
  7. // #define PRE_SIZE 32
  8. int main(){
  9.     for(int i=0; i<10000000; ++i){
  10.         std::vector&lt;int> v;
  11.         v.reserve(PRE_SIZE);
  12.         for(int k=0; k<50; ++k)
  13.             v.push_back(k);
  14.     }
  15.     return 0;
  16. }




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012