http://www.cnblogs.com/flyoung2008/articles/2136485.htmlpriority_queue调用 STL里面的 make_heap(), pop_heap(), push_heap() 算法实现,也算是堆的另外一种形式。先写一个用 STL 里面堆算法实...
分类:
其他好文 时间:
2015-07-27 13:04:08
阅读次数:
91
忽然想起的回忆,那是2007上周五在冬季,我看我的老湿调试Linux堆IP层,只看到他改变路由查找的逻辑,然后直接make install上的立竿见影的效果有点,我只知道,,这种逻辑必须再次更改编译内核。再一次,他没有编译,就像刚才编译的文件...时又无聊的工作阻碍了我对Linux内核的探索进度,直...
分类:
其他好文 时间:
2015-07-27 12:25:15
阅读次数:
116
??下载代码(墙):git clone http://git.chromium.org/external/libyuv.git 用 make 编译(linux、mingw、cygwin):make -f linux.mk用 cmake 编译(vs、linux、mingw、msys等):mkdi...
分类:
其他好文 时间:
2015-07-27 10:43:04
阅读次数:
166
C++ STL中的map是非常常见的。通常我们用如下方式来遍历,并且删除map中的一些entry:map mp;
mp.insert(make_pair(1,1));
mp.insert(make_pair(2,3)); // insert some elements
for (map::iterator iter = mp.begin(); iter !=...
分类:
编程语言 时间:
2015-07-26 20:59:33
阅读次数:
269
目录安装安装Nginx1.8安装pcre库tarxzfpcre-8.36.tar.gz
cdpcre-8.36
./configure
make&&makeinstall
cd../创建运行Nginx用户useradd-M-s/sbin/nologinwww解压Nginx软件包,调整源码文件tarxzfnginx-1.8.0.tar.gz
cdnginx-1.8.0
#ModifyNginxversion
sed-i‘s@#defineNG..
分类:
数据库 时间:
2015-07-26 17:34:17
阅读次数:
475
针对Java的开发工具,一般都有Compile、Make和Build三个菜单项,完成的功能的都差不多,但是又有区别。编译,是将源代码转换为可执行代码的过程。编译需要指定源文件和编译输出的文件路径(输出目录)。Java的编译会将java编译为class文件,将非java的文件(一般成为资源文件、比如图...
分类:
其他好文 时间:
2015-07-26 15:30:27
阅读次数:
95
Problem Description
Soda has a bipartite graph with n vertices
and m undirected
edges. Now he wants to make the graph become a complete bipartite graph with most edges by adding some extra edge...
分类:
其他好文 时间:
2015-07-26 12:45:12
阅读次数:
191
Pair类型概述pair是一种模板类型,其中包含两个数据值,两个数据的类型可以不同1.定义(构造):1 pair p1; //使用默认构造函数2 pair p2(1, 2.4); //用给定值初始化 3 pair p1= make_pair(5,6); // 用make_pair构...
分类:
编程语言 时间:
2015-07-26 12:24:54
阅读次数:
152
```
make: *** 没有规则可以创建“out/target/common/obj/APPS/AndroidWFS_intermediates/classes-full-debug.jar”需要的目标“out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar”。 停止。
```...
分类:
移动开发 时间:
2015-07-26 09:48:23
阅读次数:
179
Amr has got a large array of sizen. Amr doesn't like large arrays so he intends to make it smaller.Amr doesn't care about anything in the array except...
分类:
其他好文 时间:
2015-07-26 00:23:03
阅读次数:
133