Search:

Type: Posts; User: Elysia

Search: Search took 0.13 seconds.

  1. Replies
    11
    Views
    1,025

    First off, the book does not pass by reference....

    First off, the book does not pass by reference.
    Now, first you must separate C arrays and C++ arrays, because they behave differently. Avoid C arrays if you can.
    C arrays are declared like

    T...
  2. Replies
    11
    Views
    1,025

    I will point out 3 things: >>for (int i=0;...

    I will point out 3 things:

    >>for (int i=0; i<contacts.size(); i++)
    Beware that .size() does not return an int. It returns std::vector<your_type>::size_t, often commonly written as std::size_t...
Results 1 to 2 of 2