I\'m learning C++ and writing a binary search tree. The following is the code I wrote for my insert method.
BSTNode * BST::Insert(const std::string & v) {
You can change if(n) size++ to if (n != NULL) size++
if(n) size++
if (n != NULL) size++