Search:

Type: Posts; User: gil_savir

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,618

    first fix the following compiler warning (do not...

    first fix the following compiler warning (do not ignore those).
  2. Thread: Gaming in c

    by gil_savir
    Replies
    18
    Views
    11,012

    Fear not. I'm a private teacher who is bound to...

    Fear not. I'm a private teacher who is bound to the constraints of a (to my opinion) not too sharp professor that teaches this subject to one of my students. gets() is long out of my own functions...
  3. let start by giving types to the parameters in: ...

    let start by giving types to the parameters in:

    void read(input2,i)
  4. Thread: Gaming in c

    by gil_savir
    Replies
    18
    Views
    11,012

    This is not a state of the art code. I have it...

    This is not a state of the art code. I have it from previous assignment one of my students made. The comments are quiet explanatory.

    If what you mean is graphical games, then I suggest you take a...
  5. Replies
    92
    Views
    18,250

    What I mean is a debugger that keeps stack...

    What I mean is a debugger that keeps stack records, even after "poping" calls from the stack-head. Doing this in a tree manner, such that even after exiting a call in the stack, I could access this...
  6. Replies
    17
    Views
    3,400

    you are doing it again. 3rd thread for the...

    you are doing it again. 3rd thread for the partition problem...
  7. esbo, your if condition will always result in...

    esbo, your if condition will always result in TRUE. I guess you meant:


    if ( sex!='M' && sex!='F') ...
  8. transgalactic2. you have opened two threads for...

    transgalactic2. you have opened two threads for the same problem.
    http://cboard.cprogramming.com/showthread.php?t=111139
    please make sure one of the administrators will unify the two. Also note it...
  9. Replies
    58
    Views
    7,792

    your partition(...) function has two major...

    your partition(...) function has two major problems:
    1. The two lines quoted above assign values to the local variables sum1 and sum2, but then these variables are not used anywhere. I'm sure your...
  10. Replies
    58
    Views
    7,792

    I never said they have to be mixed with each...

    I never said they have to be mixed with each other. If each recursive function will span out two recursive calls - the one adds current integer to the sum of set1 and the other adds current integer...
  11. Replies
    92
    Views
    18,250

    Most debuggers (also the one on Eclipse) show...

    Most debuggers (also the one on Eclipse) show call-STACK. However, I would like to see a call-TREE. In some recursive functions, the call-stack is not enough for understanding which call is the...
  12. Replies
    58
    Views
    7,792

    What brewbuck said is your key for the solution....

    What brewbuck said is your key for the solution.



    although I would formulate it differently: try each time to put the current integer in sum for set1 or for set2. if any of the calls ends...
  13. Replies
    92
    Views
    18,250

    Anyone knows a good debugger (also) for recursive functions?

    Thanks guys. That really helps understanding my mistake. I was working on the same exercise and got to a code similar to dwks' code. I had a small flaw, which was very difficult to trace.

    BTW, the...
Results 1 to 13 of 13