mirror of
https://github.com/CodePanda66/CSPostgraduate-408.git
synced 2023-05-21 21:49:33 +08:00
40 lines
606 B
C++
40 lines
606 B
C++
//
|
|
// Created by Kim Yang on 2020/8/31.
|
|
// Copyright (c) Kim Yang All rights reserved.
|
|
//
|
|
#include <stdio.h>
|
|
//二叉排序树
|
|
/**定义模块**/
|
|
typedef struct BSTNode{
|
|
int key;
|
|
struct BSTNode *lchild,*rchild;
|
|
}BSTNode,*BSTree;
|
|
|
|
/**定义模块**/
|
|
|
|
//在二叉排序书中查找值为key的结点
|
|
BSTNode *BST_Search(BSTree T,int key){
|
|
while
|
|
}
|
|
|
|
/**实现模块**/
|
|
//坐等填坑
|
|
|
|
/**实现模块**/
|
|
|
|
|
|
/**测试模块**/
|
|
|
|
void testModule() {
|
|
printf("开始测试!\n");
|
|
|
|
//坐等填坑
|
|
|
|
printf("结束测试!\n");
|
|
}
|
|
|
|
/**测试模块**/
|
|
int main() {
|
|
testModule();
|
|
return 0;
|
|
} |