Search:

Type: Posts; User: tabstop

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,442

    I'm pretty sure you need to stop typing and start...

    I'm pretty sure you need to stop typing and start thinking. What needs to happen when you insert a node? Write it down on a piece of paper. Once you know what needs to happen, then you can worry...
  2. Replies
    7
    Views
    1,442

    1. You do need to change Start the very first...

    1. You do need to change Start the very first time.

    2. Using Head as a temporary node that walks through the tree is perhaps the worst variable name in the history of C.

    2. When you are walking...
  3. Replies
    7
    Views
    1,442

    Yeah you're destroying your tree in your insert...

    Yeah you're destroying your tree in your insert function too. You cannot change Start, once you've built your tree. Create a new Node* variable and walk your tree appropriately until you find a...
  4. Replies
    7
    Views
    1,442

    Are you really destroying your tree when you do...

    Are you really destroying your tree when you do an inorder traversal? Why?

    You've got some options, but changing the data member that keeps track of the root of the tree each time is not one of...
Results 1 to 4 of 4