Search:

Type: Posts; User: wOo[FIN.K.L]

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,159

    ah, that does make a lot more sense... Thanks a...

    ah, that does make a lot more sense... Thanks a lot :]
  2. Replies
    6
    Views
    1,159

    oh okay, so does that mean newNode creates a new...

    oh okay, so does that mean newNode creates a new node called "node" when I call it?

    so it should be

    [code] insert(node, newValue); [\code]

    ?

    I recall doing that and I think I got an...
  3. Replies
    6
    Views
    1,159

    but I typedefed tree to be a pointer to a node,...

    but I typedefed tree to be a pointer to a node, and since I created a node using newNode. so Shouldn't I be inserting a Node I want to insert the value in? which in this case is newNode?

    thanks...
  4. Replies
    6
    Views
    1,159

    What's wrong with my Tree ):

    Hi there I'm trying to practice trees, and I'm not quite sure how I should implement my main function, although I'm pretty sure My other functions are correct... I could be wrong though :x

    ...
  5. Replies
    8
    Views
    2,703

    ok sweet thanks for the help guys

    ok sweet thanks for the help guys
  6. Replies
    8
    Views
    2,703

    ok maybe I shouldn't call it a loop :x it's...

    ok maybe I shouldn't call it a loop :x it's 3:30AM and I'm having trouble concentrating :P



    this is whats confusing me, how does it have the chance to print testY and n%2 when it's calling...
  7. Replies
    8
    Views
    2,703

    oh I think i get it now, so for each loop (3 in...

    oh I think i get it now, so for each loop (3 in this case), it will "// print the least significant bit" the same amount of times as loops? which is why theres 3 testY's?
  8. Replies
    8
    Views
    2,703

    simple Recursion problem

    Hey there guys :)

    I've got a sample code on converting numbers into binary by using recursions

    heres the function:


    void printBinary (int n) {
    if (n < 2) {
    printf ("%d ", n);
Results 1 to 8 of 8