Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TheLionKing

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    248

    Re: Nested containers ...again :(

    may be is the fatigue! this is what am trying to do..and am not getting it right...
    I just need to fill vectors t0 to t9 with the content of each n_tuple vector..I already know they're ten.
  2. Replies
    6
    Views
    248

    Re: Nested containers ...again :(

    Thanks Nico...applying you're modifications all is working...
    what do you mean by auto & pt // so a copy is not made? can you clarify for me please?
  3. Replies
    6
    Views
    248

    Re: Nested containers ...again :(

    Thanks Nico... was thinking the first pointer pt will point to the set and the next one will point to the vectors starting from the firt vector...
    but from what you're saying the first pointer...
  4. Replies
    6
    Views
    248

    Nested containers ...again :(

    why is this move wrong ?
    I thought since I had a nested types my first loop takes of the outer type that is the set and then I'm inside the set seeing the vectors in front of me? so what i did down...
  5. Replies
    6
    Views
    296

    Re: Hexagon Grid

    Thank you
  6. Replies
    6
    Views
    296

    Re: Hexagon Grid

    can I have a general short code so as to get the idea and work from there please someone :)
  7. Replies
    6
    Views
    296

    Re: Hexagon Grid

    lets immagine the grid like a beehive, some cells are stores; only workers can go there, a portion of a cells represent the queens palace: only soldiers and special workers can go there, rest of...
  8. Replies
    6
    Views
    296

    Hexagon Grid

    implementing a game of chess, i was able to easily implement the grid with an 8x8 multidimensional array.

    but here is the case I need to implement a grid made of hexagons(six sided but in future...
  9. Replies
    7
    Views
    279

    Re: accessing nested elements...

    i was after something like this...
  10. Replies
    7
    Views
    279

    Re: accessing nested elements...

    OK thank you laserlight and sorry for my rant! but your solution was not the solution to my problem but thanks for your time
    Thanks to you too Philip
  11. Replies
    7
    Views
    279

    Re: accessing nested elements...

    come on please, these type of replies are just frustrating !!!
    we are not here playing guess games and stuff!
    if you want to help you do so, giving suggestions plus an example!

    I'VE TRIED AND...
  12. Replies
    7
    Views
    279

    accessing nested elements...

    so lets assume i have a nested vector in a set or vice versa o in a more general form a container in a container ;)
    example...


    std::set<vector<int> > my_tuple;



    how do i access...
  13. Replies
    21
    Views
    672

    Re: using std::list with a structure

    thanks so much Master 2kaud! been on this thing all saturday like a young person with no life lolz, now everything is working fine and perfect thanks for your great help! time to get a chilled beer!...
  14. Replies
    21
    Views
    672

    Re: using std::list with a structure

    why the const auto? what difference will it make if we omit the const?
  15. Replies
    21
    Views
    672

    Re: using std::list with a structure

    looking around I found my guess was right...that vector cannot grow, like an array..ok thanks again Sir 2Kaud
  16. Replies
    21
    Views
    672

    Re: using std::list with a structure

    your level of programming leave's me ............... can't find the right adjective!
    anyway what actualy is a const std::vector<type> ???
    a vector which can't grow? meaning i can't do a...
  17. Replies
    21
    Views
    672

    Re: using std::list with a structure

    exactly what i said ; a natural number COMBINATION 3
    so if our numbers are 4 and they are ; 0,1,2,3,
    then we want to achieve a list of type combi_t with the combi_ts containing
    (0,1,2 ) (0,1,3,)...
  18. Replies
    21
    Views
    672

    Re: using std::list with a structure

    thank you sir!
    since we're already at it, another last question, so i implemented this two versions of codes to make a three combinations of numbers...
    i really think they don't work well and now...
  19. Replies
    21
    Views
    672

    Re: using std::list with a structure

    ok sir! you're the best, in terms of knowledge and most important,PATIENCE!!!
    thanks so much and keep up the good work!
  20. Replies
    21
    Views
    672

    Re: using std::list with a structure

    None of those solutions worked master, compiler telling me v0 not a member type, or val0 not a member type,
    what worked was


    thank you a lot master 2kaud, the best ever on this site!!!
  21. Replies
    21
    Views
    672

    Re: using std::list with a structure

    ok thanks..
    i was doing try and error and did this

    for (auto ptr = head.begin(); ptr != head.end() ; ptr = ptr++)
    { combi_t ct = *ptr;
    master_roller(ct.val1, ct.val1,...
  22. Replies
    21
    Views
    672

    Re: using std::list with a structure

    excuse me again master a lil problem just popped up
    implemented the struct like you taught..
    i have a



    std::list<combi_t > head;
    std::vector<int> ups={2,3,4,5,6,7,8 ,9,};
    void...
  23. Replies
    21
    Views
    672

    Re: using std::list with a structure

    thanks again sir!!!
  24. Replies
    21
    Views
    672

    Re: using std::list with a structure

    excuse me Master 2kaud,
    what about accessing individual values of a type combi_t?
    let say i have a function
    void do_something(int) ;

    and i want to call do_something 3 times but with each...
  25. Replies
    21
    Views
    672

    Re: using std::list with a structure

    I knew you Master 2kaud will save the day! you who gives the correct answer all the time and you save my a** from hotwaters!
    THANK YOU AGAIN!
Results 1 to 25 of 68
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center