Search:

Type: Posts; User: MutantJohn

Search: Search took 0.03 seconds.

  1. Actually in my case, I can't remember that...

    Actually in my case, I can't remember that because I was never taught or shown that at the beginning.

    I literally just figured it out myself because I tried (++w) instead of (w++) and then it...
  2. So basically, the first real line of output you...

    So basically, the first real line of output you show, I get. One points to 6 (that's r at the beginning) and then w points to the one right after it from w++.

    My bag is, *(w++) = 1 and *r = 6 so...
  3. I think what's confusing me the most is ...

    I think what's confusing me the most is


    *(w++) = *r;


    In the beginning, r and w are equal to each other, the iterator returned from k.begin() and that's fine. I use begin() all the time.
    ...
  4. Basically, lines 74 though 84 of the output are...

    Basically, lines 74 though 84 of the output are where I'm confused. I just printed the addresses and the values of them and they were both 1 in the block above but now suddenly in the original...
  5. Can someone explain this C++ example to me?

    Here's the link : c++ - How to make elements of vector unique? (remove non adjacent duplicates) - Stack Overflow

    I get that insert() returns a pair of <iterator, bool> which is fine so I get what...
Results 1 to 5 of 5