I can't find this function for the vector but I just used a reverse iterator.
I use the functions under the #include <vector> and <list>. I should check
out this <algorithm> .
Last edited by zodiac976 on Tue Jun 23, 2009 12:42 pm, edited 1 time in total.
Yea but when it comes to what is efficient speed-wise I am a
complete newbie on that but thanks to you I know the difference
in a vector and list speed .
Oh, you should get into the habit of doing ++i instead of i++ to advance things in for-loops. Since the result is the same -- only because there's no other statements in the line of code (as delimited by ';') -- it's faster to do ++i instead of i++. There's a couple things in this forum about that, and a link in the Guides & Resources thread.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.