Advertisement
ArtisOracle

Untitled

Nov 10th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. someReturnType findItemBinTree(int item, node * root) {
  2.     if (root != NULL) {
  3.         if (root->data == item)
  4.             return whatever;
  5.         else {
  6.             findItemBinTree(item, root->lf);
  7.             findItemBinTree(item, root->rt);
  8.         }
  9.     }
  10. }
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement