新手
#include <iostream>
using namespace std;
#include <string.h>
typedef struct node //结构体
{
int data;
struct node *lchild, *rchild;
}*BSTree;
int i = 0;//全局变量
int j = 0;
void InsertBSTree (BSTree &T, int x)//建立BST
{
if ( T == NULL)
{
T = new node;
...