Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

wrong output from binary search tree!!

Hi
Ihave constructed a binary search tree and then insert it following four items. then I want to print tree in preorder form. in my output file there is extra things as below.
for example
i want this
int float mytype itisatype
but output is
int float mytype itisatype 0xbffff8ac
why do I have these extra characters?

if there is someone who has any idea about this problem ,please help me.
[427 byte] By [korhin] at [2007-11-11 7:32:12]
# 1 Re: wrong output from binary search tree!!
Your traversal is outputting 5 times - one appears to be a memory address. Can't do much debugging without code ... have you actually added 5 nodes? is your preorder traversal printing five times instead of four?
nspils at 2007-11-11 21:02:11 >