📄 main.cpp
字号:
#include < iostream >
#include < iomanip >
#include "AVLTree.h"
using namespace std;
void main()
{
AVLTree < int > T(-1);
//cin>>T;
T.Insert(70);
T.Insert(60);
T.Insert(5);
T.Insert(10);
T.Insert(40);
T.Insert(50);
T.Insert(15);
T.Insert(25);
T.Insert(20);
T.Insert(30);
cout<<T;
int d;
cout<<"Enter a value to be deleted(End with -1): ";
cin>>d;
while(d != -1) {
T.Delete(d);
cout<<T;
//system("pause");
cout<<"Enter a value to be deleted(End with -1): ";
cin>>d;
}
system("pause");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -