码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
Sql语句
建表时设置外键 create?table?grade?(id?int?,?grade?int,?constraint?id_fk?foreign?key?(id)?references?student?(id)); 添加外键 alter?table?grade?add?constraint?id_fk??foreign?...
分类:数据库   时间:2015-05-29 10:15:47    阅读次数:131
Linux中基于ptrace的外挂程序设计
所谓的外挂程序就是在某个进程执行的过程中,其他进程可以动态的修改进程中的数据或代码,从而影响程序的执行路径,并最终影响程序的运行结果。在windows上我们有系统库函数writeprocess()可以直接完成该项功能。而在linux上没有相同功能的函数可以使用,不过使用ptrace也可以完成类似的功能。 首先,Ptrace的使用形式如下: #include  int ptrace(int r...
分类:系统相关   时间:2015-05-29 10:11:11    阅读次数:207
poj 3259 bellman-ford判断是否存在负权回路
// // main.cpp // poj3259 // // Created by Fangpin on 15/5/28. // Copyright (c) 2015年 FangPin. All rights reserved. // #include #include #include #include #include using namespace std; int g...
分类:其他好文   时间:2015-05-29 10:10:35    阅读次数:138
C++简单贪吃蛇实现
#include #include #include #include #include #include #define _SIZE_ 30 #define _SET_ cout<<"\033[?25l\033[0m" static int flags = 0;typedef in...
分类:编程语言   时间:2015-05-29 10:02:36    阅读次数:137
随机数生成
标准C库中函数rand()可以生成0~RAND_MAX之间的一个随机数,其中RAND_MAX 是stdlib.h 中定义的一个整数,定义在stdlib.h, 其值与系统有关。  查看stdlib.h文件: /* The largest number rand will return (same as INT_MAX). */ #define RAND_MAX 214748...
分类:其他好文   时间:2015-05-29 10:00:27    阅读次数:94
Codeforces Round #305 (Div. 2) E. Mike and Foam 容斥原理
在一个集合中,找和x互素的数有多少? 用容斥定理,先把每个数质因数分解(每个数至多有6个质因子),奇减偶加,就统计到和x互素的数了。 代码: #include #include #include #include #include using namespace std; const int N = 5*100000+10; const int maxn = 5*100000; int c...
分类:其他好文   时间:2015-05-29 10:00:16    阅读次数:129
poj 1915 http://poj.org/problem?id=1915
/**#include #include #include #include #define N 310using namespace std;int d[8][2] = {{-2, -1}, {-2, 1}, {-1, -2}, {-1, 2}, {1, -2}, {1, 2}, {2, -1},...
分类:Web程序   时间:2015-05-29 09:55:04    阅读次数:105
85 Maximal Rectangle
public class Solution { public int maximalRectangle(char[][] matrix) { if (matrix == null || matrix.length == 0) { return 0; ...
分类:其他好文   时间:2015-05-29 09:52:28    阅读次数:104
倍增LCA
#include#include#include#includeusing namespace std;const int M = 200005;struct Edge{ int v, next;} edge[M q; q.push(1); memset(vis, 0, size...
分类:其他好文   时间:2015-05-29 09:49:28    阅读次数:95
[Selenium]计算坐标进行拖拽,重写dragAndDropOffset
//@author jzhang6 public void dragAndDropOffset(WebDriver driver,WebElement dragableEl, WebElement dropableEl, int offsetX, int offsetY){ Actions act....
分类:其他好文   时间:2015-05-29 09:44:41    阅读次数:809
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!