View Single Post
  #4 (permalink)  
Old April 17th, 2006, 05:07 AM
C@uark C@uark is offline
Authorized User
 
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to C@uark
Default

Not sure what your asking here are you taking about linkage from one node to the next or are you taking phyically displaying the tree. some helpful tips: have some comments in in your code as to what your expecting your logic todo and maybe how you have declared your structures. really to me it looks more like a double linked list with parent and child lables I am guessing, but of coarse I could be missing something. I am farely certain that your code snipet is supposed to add nodes right. just need a little bit more info, also what order(# of child nodes any one parent can have) of tree are you dealing with the prev_sibling next_sibling made me thing of an order greater than 2.
Reply With Quote