摘要:
题不难,数据结构之BST,就是输入纠结了一会#include <iostream>
#include <cstring>
using namespace std;
const int maxn=30;
struct Tnode
{ char data; Tnode * lchild; Tnode * rchild;
};
Tnode * root;
void insert(Tnode * p,char c)
{ if(root==NULL) { root=new Tnode; root->data=c; root->lchild=NULL; root-> 阅读全文