#include #include #include "avl.h" int main() { AVLTree theTree; string s; cout << "Type something, please: "; getline( cin, s ); for( int i=0; i < s.length(); i++ ) theTree.AddItem( s[i] ); AVLTree::iterator theIterator = theTree.begin(); while( theIterator != theTree.end() ) { cout << *theIterator; theIterator++; } cout << endl; const AVLNode *theRoot = theTree.GetRoot(); cout << "Height: " << theRoot->GetHeight() << endl; return( 0 ); }