Thread: pointer help
View Single Post
Old Apr 4th, 2006, 10:11 PM   #59
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 884
Rep Power: 4 The Dark is on a distinguished road
In that case, you need to print out the right hand child, then the current node, then the left hand child. The indent should work OK (personally I would use a space or two rather than a tab). Remember to add a "\n" to the end of the output of each node's value to output a new line.

If that doesn't work, show us the printing code you are using now.
The Dark is offline   Reply With Quote