Binary Search Tree Array Imp. C++
问题 I'm just having trouble with Inserting into the array...And having the children branch off from the root, or "parent".. I've been trying to insert data into an array based implementation of a BST: BST::BST(int capacity) : items(new item[capacity]), size(0) { // define the constructor to the BST Class. } void BST::insert (const data& aData) { if ( items[root].empty ) // make the first data the root. { items[root].theData = aData; items[root].empty = false; size++; } else if ( items[root]