#include <iostream>
#include <string>
#include "AVLTree.h"
using namespace std;
int main()
{
AVLTree<string> b;
b.Insert("Jan");
b.Insert("Feb");
b.Insert("Mar");
b.Insert("Apr");
b.Insert("May");
b.Insert("June");
b.Insert("July");
b.Insert("Aug");
b.Insert("Sep");
b.Insert("Oct");
b.Insert("Nov");
b.Insert("Dec");
cout<<endl;
b.LevelOrder();
cout<<"Depth is "<<b.Depth()<<endl;
b.InOrder();
}
- 1
- 2
前往页