Search:

Type: Posts; User: antred

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    5,879

    No problem. :p

    No problem. :p
  2. Replies
    11
    Views
    5,879

    Yep, which is exactly what it says in the comment...

    Yep, which is exactly what it says in the comment above the reserve() call. ;)
  3. Replies
    11
    Views
    5,879

    Yes, but note that in my example I push_back()...

    Yes, but note that in my example I push_back() after I reserve().
  4. Replies
    11
    Views
    5,879

    Not just some other ways. Use a vector: ...

    Not just some other ways. Use a vector:



    #include <iostream>
    #include <vector>
    #include <cstdlib>
    #include <ctime>
    #include <stdexcept>
  5. Replies
    11
    Views
    5,879

    Arrays don't work like that in C++. The size of...

    Arrays don't work like that in C++. The size of an array must be known at compile time. You cannot change the size of an array at runtime like you're attempting to do.
    If you need dynamically...
Results 1 to 5 of 5