码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
GTK中如何捕捉和屏蔽按键信号(如F10等)
#include #include #include #include #include #include #include /*按键信号处理函数*/ gboolean key_value(GtkWidget *widget, GdkEventKey *event, gpointer data) { GtkWidget *label = (GtkWidget *)data;...
分类:其他好文   时间:2015-07-20 19:47:53    阅读次数:204
C++简单版BitSet求解大量数据是否存在莫个数
#include using namespace std; template class BitSet { public: BitSet() { set(); } void set() { for (int i = 0; i < Nm; i++) { v...
分类:编程语言   时间:2015-07-20 19:47:02    阅读次数:135
O(nlogn)的最长上升子序列并且记录所选择的数 模板
#include #include #include #include #include #include using namespace std; const int MAXN = 10000 + 10; int A[MAXN]; int lis[MAXN]; int f[MAXN]; int stack[MAXN]; int N; int main() { while(sc...
分类:其他好文   时间:2015-07-20 19:42:30    阅读次数:122
C++求解数组中出现超1/4的三个数字。
#include using namespace std; //求x!中k因数的个数。 int Grial(int x,int k) { int Ret = 0; while (x) { Ret += x / k; x /= k; } return Ret; } int main() { cout...
分类:编程语言   时间:2015-07-20 19:39:47    阅读次数:141
uva122_二叉树的层次历遍
大白2,P150页#include #include #include #include #include const int N = 100009; struct Node { bool have_value; int v; Node *left,*right; Node(): ha...
分类:其他好文   时间:2015-07-20 19:39:12    阅读次数:132
hdu3722Card Game 概率dp水题
//3中天气前一天天气为i转为第二天天气为j的概率为p[i][j] //问第一天天气为i,n天后天气为j的概率 //dp[i][j][k]在第一天天气为j的情况下第n天的天气为j的概率 //dp[i][j][k] += dp[i-1][j][s]*dp[1][s][k] ; #include #include #include using namespace std ; const...
分类:其他好文   时间:2015-07-20 19:37:50    阅读次数:100
部分链表操作总结
部分链表操作总结#include #include using namespace std;// definition of Node struct Node { int val; Node *next; Node(int x) : val(x), next(NULL){} };// create a linklist with n...
分类:其他好文   时间:2015-07-20 19:35:54    阅读次数:69
【Linux操作系统】Linux内核插入卸载模块
打开终端 输入:mkdir moduleTest,创建一个放置文件的文件夹 进入文件夹,cd moduleTest 创建文件:nano hello.c,文件内容如下: #include #include MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ pri...
分类:系统相关   时间:2015-07-20 19:32:32    阅读次数:178
URAL - 1519 Formula 1 (插头DP)
这里写链接内容刚开始学插头dp好吃力,看了别人的代码有点看不懂,所以就参考了别人的代码,写了注释,希望有帮助 如果看不懂可以问//下面所说的情况全在论文中的第13页 #include #include #include using namespace std; #define N 13 #define S1 14000 #define S2...
分类:其他好文   时间:2015-07-20 19:31:35    阅读次数:123
HDU 1269 强连通模板 Tarjan算法
求强连通量,为1输出Yes否则No Tarjan算法模板 具体讲解:https://www.byvoid.com/zht/blog/scc-tarjan #include "stdio.h" #include "string.h" struct Edge { int v,next; }edge[100010]; int head[10010],stack[10010],dfn...
分类:编程语言   时间:2015-07-20 19:28:24    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!