Search:

Type: Posts; User: lydiab

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    2,956

    Ah ok, I understand. That seems like a good way...

    Ah ok, I understand. That seems like a good way to use malloc then if it's gonna help eliminate bugs when programs get more complicated and I (more than likely :p)forget to change the malloc!
    ...
  2. Replies
    12
    Views
    2,956

    What's the difference between : node* n =...

    What's the difference between :

    node* n = malloc(sizeof(node));
    and

    node* n = malloc(sizeof(*n));[/QUOTE]

    The first one is creating a chunk of memory the size of a node (is that right?)...
  3. Replies
    12
    Views
    2,956

    I'm finding dev c++ to be a bit of a nightmare....

    I'm finding dev c++ to be a bit of a nightmare. Any code that works error free on the college unix computers always brings up errors in dev c++ or, like in this case, doesn't run properly. I have a...
  4. Replies
    12
    Views
    2,956

    Thanks for your reply. I've still no idea why it...

    Thanks for your reply. I've still no idea why it won't run properly on my computer. The printTree function also causes it to crash after it outputs one or two numbers. very strange!

    Hadn't...
  5. Replies
    12
    Views
    2,956

    oops, sorry about the identation! i'm usually the...

    oops, sorry about the identation! i'm usually the only one who has to read my code so I just stick with the identation dev c++ gives me!

    Well it's still not working for me. No idea what the...
  6. Replies
    12
    Views
    2,956

    Binary Search Tree-Strange problem

    Hi there,
    I'm having a problem with my bst and I can't work out why. I've looked through so many pages of code but can't find a similar problem.

    In my program, I originally got it to read a file...
Results 1 to 6 of 6