I am working on a program in which I build a Family Tree.
In order to build the tree, I have to search the tree to see if the name exists and then insert.
I tried to do this type of search, but I found out it only worked on binary search trees:
while (iteratorFirst != myFTree.end() && *iteratorFirst != firstBorn)
if(firstBorn < *iteratorFirst)
iteratorFirst = iteratorFirst.DownFirst();
iteratorFirst = iteratorFirst.DownSibling();
Like I said, this doesn't work. Could someone help me please with a LOCATE and INSERT function to build my tree.