Skip to content

Instantly share code, notes, and snippets.

Created May 3, 2013 22:51
Show Gist options
  • Save anonymous/5514888 to your computer and use it in GitHub Desktop.
Save anonymous/5514888 to your computer and use it in GitHub Desktop.
void Tree::insertLeft(){
if (leftChild==NULL){
Tree *special;
special=new Tree();
leftChild=special;
}
else {
Tree *special;
special=new Tree();
special->getSubTreeL()=leftChild;
leftChild=special;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment