码迷,mamicode.com
首页 >  
搜索关键字:amp    ( 86777个结果
【同一直线最多点】 poj 1118+2606+2780
poj 1118#includeusing namespace std;#define N 700struct point {int x,y;} pnt[N];int main(){ int n,i,j,k,max,cnt; while(scanf("%d",&n)&&n) { ...
分类:其他好文   时间:2014-10-10 11:28:54    阅读次数:191
C++静态代码分析工具对比cppCheck与PreFast
具体内容参看文件《CppCheck和PreFast对Cplusplus代码静态分析测试.zip》C++测试源代码main.cpp#define NULL 0#include #include // 没有初始化void defect1(){ int a; int b; b = a;}// 空指针取值v...
分类:编程语言   时间:2014-10-10 11:28:04    阅读次数:277
const修饰指针
关于const修饰指针的情况,一般分为如下4种情况:int b =500;const int *a =&b; //情况1int const *a =&b; //情况2int* const a =&b; //情况3const int* const a =&b; //情况4如何...
分类:其他好文   时间:2014-10-10 09:59:24    阅读次数:157
Implement a System Call in Kernel 3.10.56 (X86_64)
Implementing a system call in Kernel 2.6.32 is somehow different fromthe method in Kernel 3.10.56.In kernel 2.6.32, we should register the system call...
分类:其他好文   时间:2014-10-10 07:04:24    阅读次数:218
CSAPP 六个重要实验 lab5
CSAPP  && lab5...
分类:移动开发   时间:2014-10-10 04:47:24    阅读次数:532
Vijos P1881 闪烁的繁星 (自己加强了一下。。)
如果每一次查询的不是整个长度,而是[x, y]这个区间。。闲来无事自己写了一下,感觉是对的,这样就变成了合并区间。 #include #include #include #include #include #include #define mem(f) memset(f,0,sizeof(f)) #define M 100005 #define mod 1000000007 ...
分类:其他好文   时间:2014-10-10 03:39:16    阅读次数:196
Cacti 监控 SQL Server 数据库图文详解
模板下载:(1)可以直接下载本站发布的Cnyunwei-Cacti+Nagios集成全自动安装ISO进行安装,已集成此模板及更多的使用插件模板(2)可以直接去官方论坛下载最新的模板http://forums.cacti.net/viewtopic.php?f=12&t=38135php-mssql配置:cacti的机器上必须有php-mssql驱动ph..
分类:数据库   时间:2014-10-10 01:35:34    阅读次数:500
UVA 11450 Wedding shopping(DP)
One of our best friends is getting married and we all are nervous because he is the first of us who is doing something similar. In fact, we have never assisted to a wedding, so we have no clothes o...
分类:其他好文   时间:2014-10-10 01:16:33    阅读次数:274
zoj 3211 - Dream City
题目:javaman来到了一个城市,这里有很多长着金币的树,每棵树每晚还会结出新的金币,            现在他每天白天只能砍一棵树,最多在这里呆m天,求能得到的最大金币数。 分析:贪心+dp,二维01背包。如果砍树的集合确定,那一定按照b递增的顺序砍,因此排序后背包。 说明:(2011-11-02 05:49)。 #include #include #include #de...
分类:其他好文   时间:2014-10-10 00:59:35    阅读次数:236
Hash表的扩容(转载)
Hash表(Hash Table)        hash表实际上由size个的桶组成一个桶数组table[0...size-1] 。当一个对象经过哈希之后,得到一个相应的value , 于是我们把这个对象放到桶table[ value ]中。当一个桶中有多个对象时,我们把桶中的对象组织成为一个链表。这在冲突处理上称之为拉链法。   负载因子(load factor)        ...
分类:其他好文   时间:2014-10-10 00:57:33    阅读次数:3011
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!