#include <stdio.h> bitree* bstsearch(bitree* t, int key) { bitree* p = t; while(p != NULL) { if(p->key == key) return p; else if(p->key > key) p = p->lchild; else p = p->rchild; } return 0; //查找不成功时返回整数0 }