Created
March 27, 2011 18:32
-
-
Save fbs/889444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* * * * * * * * * | |
* | |
* Help routine for remove_word_from_tree | |
* this recursive function finds the 'alphabetically largest' | |
* word in (sub-)tree. This means: it returns a pointer | |
* to the word that has the largest value out of strcmp(). | |
* | |
* * * * * * * * */ | |
const char * // help routine for the above function | |
branch::get_largest_word(void) const | |
{ | |
if(_right) | |
return _right->get_largest_word(); | |
else | |
return _word; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment