
c++
MrLeaper
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++ string和char用法
1.当char作为类的私有成员时:#include #include using namespace std; class A { private: char *c; //或用char []c; public: A(char *x) { c=new char[strlen(x)+1]; //当元素为char指针时,防止浅拷贝 strc原创 2017-03-09 20:39:31 · 2837 阅读 · 0 评论 -
二叉树和哈夫曼树
二叉树:#include #include #include #include #include #include #include using namespace std; template struct BTNode { T element; BTNode *lChild,*rChild,*parent; char value; int v原创 2017-05-11 22:54:38 · 454 阅读 · 0 评论