9.25实现下列函数: int Search(SSTable s, KeyType k); /* Index the element which key is k */ /* in StaticSearchTable s. */ /* Return 0 if x is not found. */ 静态查找表的类型SSTable定义如下: typedef struct { KeyType key; ... ... // 其他数据域 } ElemType; typedef struct { Ele
int main(){ BiTree T; int h=1,d; CreateBiTree(T); PreOrderTraverse(T); MiOrderTraverse(T); LaOrderTraverse(T); d=LeafCount(T); cout<<"the number of leaves is:"<<d<<endl; High(T,h); cout<<"the height of the tree is :"<<h