PC客户端开发研究者---爱生活,爱code!

摘要: 1 #include 2 //#include 3 using namespace std; 4 5 class Strings 6 { 7 public: 8 Strings(const char * str=NULL); 9 10 Strings(const Strings &another);11 ~Strings();12 Strings & operator=(const Strings &ths);13 private:14 char *m_data;15 };16 Strings::Strings(const char *str... 阅读全文
posted @ 2014-03-25 19:40 xxiaoye 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1.一棵树是N个节点和N-1条边的集合。2.对任意节点n_i,n_i的深度为从跟到n_i的唯一路径的长。因此跟的深度为1。n_i的高是从n_i到一片树叶的最长路径的长。因此所有的树叶的高都是1。一棵树的高等于它根的高。3.二叉查找树 其深度的平均值为O(logN),但深度最大也能够达到N-1二叉树节... 阅读全文
posted @ 2014-03-25 18:51 xxiaoye 阅读(200) 评论(0) 推荐(0) 编辑