摘要: Usually when writing code it is easiest to precede from concrete to abstract; therefore, it is easier to write a class for a specific datatype and then proceed to a templated - generic - class. For th... 阅读全文
posted @ 2005-01-24 01:34 小白天地 阅读(591) 评论(1) 推荐(0)
摘要: #include "iostream.h" struct node { int key_value; node *left; node *right; }; class btree { public: node *root; btree(); ~btree(); void destroy_tree(node *leaf); void i... 阅读全文
posted @ 2005-01-24 00:05 小白天地 阅读(619) 评论(0) 推荐(0)