#include//cout,cin #include using namespace std; #include"bitree.h" #include"SqQueue_bt.h" #include"SqStack_bt.h" //测试参考数据 string fbt="a b d # # e # # c f # # g # #"; // 满二叉树最后一层每个叶结点后有两个# string cbt="a b d # # e # # c # #"; // 完全二叉树每个叶结点后有两个# string gbt="a b # d # # c e # # #"; // 一般二叉树 string obt="a b c d # # # # #"; // 左斜树1 void dispmenu() { //显示主菜单 cout<<"\n功能选择(1~12,0退出!)"< *bt; int y=100,x=350; system("cls"); // 清屏 int choice; do { dispmenu(); // 显示主菜单 cout<<"Enter choice(1~12,0 退出):"; cin>>choice; switch(choice) { case 1: // 创建二叉树 cout<<"测试参考数据:"< *p; cout<<"\n输入要查询的结点值:"<>e; p=Search(bt,e); if(p) { cout<<"\n找到!"; cout<data<