Advertisement
robn

Untitled

Oct 26th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <cstdio>
  2. #include <vector>
  3.  
  4. int main(int argc, char **argv) {
  5.     std::vector<float> v;
  6.     v.reserve(1);
  7.     v[0] = 1.0f;
  8.     printf("size: %lu\n", v.size());
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement