SEARCH operation in a BINARY SEARCH TREE

Chantheeya's Avatar, Join Date: Mar 2010
Light Poster
I need a simple c++ PROGRAM to perform SEARCH operations in a BIANRY SEARCH TREE
0
0
Chantheeya's Avatar, Join Date: Mar 2010
Light Poster
Thanks a lot for your approach... But if you see the program more deeply, you can see that the program can perform all the operations on a binary search tree except the SEARCHING an element opreation ( and thats exactly what i want ).....
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
There is a function in that code to print the elements in order. You can adapt that function so that instead of printing the element it compares it with what you're looking for. This should be quite simple to do.
0