码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
c++学习-特殊类成员
静态变量:#include#include#include using namespace std;class A{public: A(){ total++; } static int total;};//@warn 静态成员变量必须在全局进行定义int A::total =...
分类:编程语言   时间:2015-07-12 18:40:56    阅读次数:137
【整合】矩阵树定理模板
矩阵树定理求生成树计数模板. 原题是SPOJhighways 代码又长又丑…#include #include #include #include #include #define MAXN 20 #define eps 1e-9 using namespace std; int A[MAXN][MAXN]...
分类:其他好文   时间:2015-07-12 17:29:52    阅读次数:136
【剑指offer 面试题38】数字在排序数组中出现的次数
思路: 利用二分查找,分别查找待统计数字的头和尾的下标,最后做差加一即为结果。C++: 1 #include 2 #include 3 using namespace std; 4 5 int GetFirstK(vector& nums, int startpos, int endpos,...
分类:编程语言   时间:2015-07-12 17:24:20    阅读次数:146
程序跳转到访问一个确定的地址0x100000
用函数指针把这个确定的地址转化成一个函数指针这就明白了程序中调用函数的意义测试代码如下: 1 #include 2 3 void getMemory() 4 { 5 printf("i am here!"); 6 } 7 8 void main() 9 {10 int *p;1...
分类:其他好文   时间:2015-07-12 17:22:52    阅读次数:131
poj 1273 Drainage Ditches(最大流入门)
题意:n个池塘,m条水渠,求从第一个池塘到第m个池塘能运送的最大流量;思路:裸最大流dicnic算法。建分层图并不断找增广路,直到找不到增广路即为最大流。邻接表实现:#include #include #include using namespace std;#define MAXN 210#def...
分类:其他好文   时间:2015-07-12 17:19:44    阅读次数:132
wamp集成环境下配置多个站点
步骤一:打开D:\wamp\bin\apache\Apache2.2.21\conf目录下的httpd.conf文件,搜索Listen 80,在其后加上Listen 88Xml代码#Listen12.34.56.78:80Listen80Listen88步骤二:找到Include conf/extr...
分类:其他好文   时间:2015-07-12 17:16:42    阅读次数:94
HDU 3549 Flow Problem 流问题(最大流,入门)
题意:给个赤裸的最大流问题。思路:EK+BFS解决。跟HDU1532几乎一样的。 1 #include 2 #define LL long long 3 #define pii pair 4 #define INF 0x7f7f7f7f 5 using namespace std; 6 const....
分类:其他好文   时间:2015-07-12 17:06:12    阅读次数:120
习题3.18 检测平衡符号(/* */ 不知怎么做)
/* 检测平衡符号 */#include#includestruct stack;typedef struct stack * PtrToStack;struct stack{ char *Array; int TopOfStack; int Capacity;};PtrToSta...
分类:其他好文   时间:2015-07-12 17:05:33    阅读次数:181
BZOJ 3196: Tyvj 1730 二逼平衡树( 树套树 )
这道题做法应该很多吧....我用了线段树套treap....--------------------------------------------------------------------------------------------------------------#include#i...
分类:其他好文   时间:2015-07-12 17:05:33    阅读次数:129
C语言之基本算法26—佩尔方程求解
//穷举法! /* ====================================================== 题目:求佩尔方程x*x-73*y*y=1的解。 ====================================================== */ #include #include int main(void) { int x,y;...
分类:编程语言   时间:2015-07-12 15:48:11    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!