-
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.
-
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?
Similar Threads
-
Replies: 4
Last Post: 12-05-2005, 06:58 PM
-
By TheJVM_1970 in forum Java
Replies: 2
Last Post: 12-05-2005, 12:23 AM
-
By diva_thilak in forum Java
Replies: 0
Last Post: 02-21-2005, 03:47 AM
-
Replies: 0
Last Post: 10-23-2001, 11:21 AM
-
Replies: 0
Last Post: 12-02-2000, 12:08 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks