二叉排序樹基本操做的實現:創建二叉排序樹,插入刪除數據(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*)
相關文章
相關標籤/搜索