And your question is? How do you use code tags?

If functions need to return a value they shouldn't be declared as returning void.

Do you have to use recursion to search your tree? There's a very simple iterative method.