Search:

Type: Posts; User: Beamu

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    11,783

    OH! I see - that makes perfect sense! Thanks very...

    OH! I see - that makes perfect sense! Thanks very much for the help. :)
  2. Replies
    4
    Views
    11,783

    Exceptional thank you! Although - i'm not 100%...

    Exceptional thank you! Although - i'm not 100% sure why it worked - would someone be so kind as to give me a quick explanation as to why I need the the struct to do the test? I thought sort would use...
  3. Replies
    4
    Views
    11,783

    Sorting an STL Vector of pointers

    Hi all,

    I have a stl::vector containing pointers to objects. I need to sort this vector based on a member variable (accessible by a getter function). Can someone give me a clue as to how to go...
  4. Replies
    8
    Views
    1,181

    Yup agreed. Assume I understood what you said,...

    Yup agreed. Assume I understood what you said, and that my original pseudo code was just plain terrible. :)



    Soundness in that my original naive concern was that by continually using the same...
  5. Replies
    8
    Views
    1,181

    Yup - thanks, you're right there - that was...

    Yup - thanks, you're right there - that was pretty poor pseudo code. But the concept is sound. Is that because the value of temp is copied during the push_back call?
  6. Replies
    8
    Views
    1,181

    Yeah - maybe i'm going about this wrong... ...

    Yeah - maybe i'm going about this wrong...

    What i'm trying to do is store a vector of vectors of type int. Which is fine, given this scenario:



    typedef std::vector <int> fooData;...
  7. Replies
    8
    Views
    1,181

    STL Vector question

    Hi all,

    Just having a semantics issue with STL. Given a declaration as per the following:



    typedef std::vector <int> fooData;
    std::vector <fooData> m_fooData;
  8. Replies
    2
    Views
    1,507

    oh - my - god... sorry - this is the end of a 16...

    oh - my - god...
    sorry - this is the end of a 16 hour coding session and i'm not thinking straight. Thanks!
  9. Replies
    2
    Views
    1,507

    STL Vectors of Vectors

    Hi all,

    I'm having some trouble getting my head around using a vector of vectors. I was wondering if anyone could set me straight with this - it's been ages since i've used vectors... :/


    ...
  10. Replies
    3
    Views
    5,291

    Ah yeah - thanks - I was totally reading that...

    Ah yeah - thanks - I was totally reading that initial code wrong when I tried to re-implement it with iterators. Thanks guys! :)
  11. Replies
    3
    Views
    5,291

    Subtracting offsets from iterators

    Hi all,

    Got a quick question regarding iterators and subtracting offsets and I was wondering if you can help me out here. I had some code that was accessing a vector like such:



    for (int i...
Results 1 to 11 of 11