二叉排序树基本操做的实现:创建二叉排序树,插入删除数据(C语言)

#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct BTree{ int date; BTree *lchild; BTree *rchild; }BTree; //插入数据 int BSTInsert(BTree *&p,int key){ if(p==NULL){ p=(BTree*)
相关文章
相关标签/搜索