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/DataStructure/Code/ex9/ex9.cpp
2021-12-19 22:25:07 +08:00

26 lines
No EOL
434 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;
}