This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/ex9/ex9.cpp
2021-12-03 15:33:31 +08:00

24 lines
428 B
C++

#include <iostream>
#include "BST.hpp"
int main()
{
printf("初始化\n");
BST bst(31);
printf("========层次遍历========\n");
bst.trav_level();
printf("\n========先序遍历========\n");
bst.trav_pre();
printf("========中序遍历========\n");
bst.trav_in();
printf("========后序遍历========\n");
bst.trav_post();
printf("高度为%d\n",bst.height());
return 0;
}