
C++
nicehuai
这个作者很懒,什么都没留下…
展开
-
const介绍
int b = 500 ; const int* a = &b ; //情况1 int const *a = &b ; //情况2 int* const a = &b ; //情况3 const int* const a = &b //情况4 //区别 1)情况1:如果 const 位于 * 的左侧,则 const 就是用来修饰指针所指的变量,即指针指向是常量;原创 2015-08-24 10:59:49 · 328 阅读 · 0 评论 -
haffuman 编码c++实现
为了考研很久没有搞技术了,现在海大考上已经很多天了,无意看到以前考研上机做的考研真题,顺便就粘贴上来冒个泡. #include <iostream> #include <string> #include <vector> #include <algorithm>using namespace std ; class HaffumanNode { public: int wight ; //权原创 2017-04-19 15:45:31 · 994 阅读 · 0 评论