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
    21
    Views
    326

    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!...
  2. Replies
    21
    Views
    326

    Re: using std::list with a structure

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

    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
  4. Replies
    21
    Views
    326

    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...
  5. Replies
    21
    Views
    326

    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,)...
  6. Replies
    21
    Views
    326

    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...
  7. Replies
    21
    Views
    326

    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!
  8. Replies
    21
    Views
    326

    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!!!
  9. Replies
    21
    Views
    326

    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,...
  10. Replies
    21
    Views
    326

    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...
  11. Replies
    21
    Views
    326

    Re: using std::list with a structure

    thanks again sir!!!
  12. Replies
    21
    Views
    326

    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...
  13. Replies
    21
    Views
    326

    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!
  14. Replies
    21
    Views
    326

    using std::list with a structure

    if i have a struct like this


    struct combi_t
    {
    int val0;
    int val1;
    int val2;
    combi_t* nextPtr;
  15. Re: zero in list contents and multiset contents

    i found it...I just don't know why it happens...I don't know if you understood my problem VictorN
    I added more code snippet, may be will make you understand better and may be a good explanation may...
  16. zero in list contents and multiset contents

    so i insert values from a vector into a list and into a multiset,
    and i noticed zero is added to their contents!
    I had to do a whole lot of debugging to find out where the error was, how can i stop...
  17. Replies
    5
    Views
    271

    Re: segmentation fault

    I solved it . Thanks to all :)
  18. Replies
    5
    Views
    271

    Re: segmentation fault

    of course i did...it just points me to the for loop line and thats it...I can't seem to see where the error is ...
  19. Replies
    5
    Views
    271

    segmentation fault

    The usual segmentation fault..the debugger takes me to the line
    for(combi * put = head ...........

    am thinking head does not exist...which means call to function ins(head, t, f) is not working...
  20. Replies
    9
    Views
    434

    Re: file i/o from bottom to the top

    thanks again twokaud...so many many thanks..
  21. Replies
    9
    Views
    434

    Re: file i/o from bottom to the top

    thanks to all of you...you guys are just soo good! hopefully oneday i will become like you
  22. Replies
    9
    Views
    434

    Re: file i/o from bottom to the top

    wow...very trivial indeed...so i load all of them in a container and i start to pop_back for count 20..new line..is always looks more easier when you already have the answer...
    thanks laserlight...
  23. Replies
    9
    Views
    434

    Re: file i/o from bottom to the top

    and what about inverting the order? last line must be first line did you notice? must read from bottom to top... still not clear how that is being done laserlight...
  24. Replies
    9
    Views
    434

    Re: file i/o from bottom to the top

    each line will be made of 20 numbers, how many lines? they vary..more than 150 lines for sure...keeps changing...
  25. Replies
    9
    Views
    434

    file i/o from bottom to the top

    so let say i got some numbers like so in a .txt file


    12 13 22 22 43 45
    23 54 87 89 98 88
    34 55 76 88 8 88
    45 32 45 28 98 88
Results 1 to 25 of 56
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