![]() |
|
#1
|
|||
|
|||
Binary Search Tree Verification HelpHello to all expect software engineer, i have create a binary search
tree. I know to know what is your opinion about my program. CPP / C++ / C Code:
I wonder does something wrong with my code. Another question how i can improve encapsulation by private the treeNode but BSearchTree is unable to access it. What method to solve it ? Thanks for your help. Last edited by LuciWiz : 13-Oct-2008 at 08:38.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Binary Search Tree Verification HelpI dont know about binary search trees, but this function is really helpful in genetic programming.
__________________
My personal site: Utilities for text processing, debugging, testing and plotting |
|
#3
|
|||
|
|||
Re: Binary Search Tree Verification HelpAny one who expect in this ?
Thanks. |
|
#4
|
|||
|
|||
Re: Binary Search Tree Verification HelpDo you mean has anybody looked at this?
I did, it's pretty neat. I don't really feel qualified to say much as I barely understand templates at this point. BUT I was able to put together a main() to make some calls and added some prints to help illustrate the mechanics. Maybe this ready-to-run example will be of more interest to others (something to consider in future postings): CPP / C++ / C Code:
I got a couple of warnings about unused variable which I noted in the above. One of those unused was in a destructor... which made me curious, don't you need to destroy all allocated space? Maybe I just don't see it yet... anyhow , pretty neat! |
|
#5
|
|||
|
|||
Re: Binary Search Tree Verification HelpBy the way, this is my latest code.
CPP / C++ / C Code:
What is your opinion about my latest program ? Have fun with it. |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Link List In C | Peter_APIIT | C Programming Language | 33 | 12-Jun-2008 14:33 |
| Deleting a node from binary search tree | earachefl | C++ Forum | 3 | 28-Jun-2006 08:26 |
| can anyone help me with my tree :) | bioeng_mtm | C++ Forum | 5 | 22-Apr-2006 13:50 |
| Binary Search Tree in C++ | rpg3 | C++ Forum | 5 | 02-Apr-2006 10:53 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 11:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The