Search:

Type: Posts; User: tabstop

Search: Search took 0.17 seconds.

  1. Replies
    11
    Views
    823

    I'm going to guess that's because you have the...

    I'm going to guess that's because you have the function marked as a const function, so it has to be able to work on a const vector.
  2. Replies
    11
    Views
    823

    That just declares a variable, in this case an...

    That just declares a variable, in this case an uninitialized variable. If you had an initialization portion there, like


    vector<Vehicle *>::iterator it = something;

    then you'd have an...
  3. Replies
    11
    Views
    823

    And surely your year variable has to be inside...

    And surely your year variable has to be inside your for-loop and not above it?
Results 1 to 3 of 3