basically the array cannot increment by 2?
To summarise georgep,
iter++;
and ++iter;
moves the iterator to the next value in the array.
(*iter)++;
increases what the iterator is pointing at.
Very, very different.
Last edited on
Oh, I didn't realise that that was what Yangfizz was trying to do.
It's just a guess; Yangfizz hasn't stated what she's actually trying to do.
it's a problem i read from a book lol.
just started learning cpp a week ago.