摘要: BST的定义1 //Definition of a Binary Search Tree2 typedef struct BST3 {4 int value;5 struct BST* left;6 struct BST* right;7 }BST; 8 BST* root=new BST;初始化 1 /*Initialization of a BST, based on values in a vector. 2 First element of the vector fills the root, then others will be in the proper... 阅读全文
posted @ 2012-01-31 18:48 Cavia 阅读(284) 评论(0) 推荐(0) 编辑