dll注入实现MFC程序劫持(4) 双击会运行system("pause")打开计算器现在禁止打开#include#include#include#include#include"detours.h"#pragma comment (lib ,"detours.lib" )static int (*...
分类:
编程语言 时间:
2015-05-26 21:12:18
阅读次数:
168
在java中,可以声明一个泛型数组,不能通过直接通过T[] tarr=new T[10]的方式来创建数组,最简单的方式便是通过Array.newInstance(Classtype,int size)的方式来创建数组例如下面的程序。public class ArrayMaker { ...
分类:
编程语言 时间:
2015-05-26 21:08:38
阅读次数:
182
回溯法--算法框架(2) 基本框架和组成部分:public abstract class Problem { //判断是否有解向量 boolean flag ; //解向量 Comparable [] x; //解向量的大小 int n; //判断是否为完整解 public abstract boo...
分类:
编程语言 时间:
2015-05-26 21:02:45
阅读次数:
133
#import #import "Observer.h"#import "Person.h"#import "Computer.h"int main(int argc, const char * argv[]) { @autoreleasepool {/* Person *per...
分类:
其他好文 时间:
2015-05-26 20:58:30
阅读次数:
89
过滤劫持和函数回调(2) 注意release模式:这里实现对tasklist指令的劫持,其它不劫持:#include#include#include#include"detours.h"#pragma comment (lib ,"detours.lib" )static int (*oldsyst...
分类:
其他好文 时间:
2015-05-26 20:54:39
阅读次数:
180
static_cast,const_cast,reinterpret_cast,dynamic_cast详解 #include//c++的数据类型转换:static_cast(要转换的数据),//用于一般的数据类型转换void main1(){ int n = static_cast(78.98);...
分类:
其他好文 时间:
2015-05-26 20:53:43
阅读次数:
131
realloc函数实现数组动态增长 realloc函数有两种机制:#include#includeint main(){ int *p = ( int*)calloc(10, sizeof( int)); printf( "%p",p); for ( int i = 0; i #includeint...
分类:
编程语言 时间:
2015-05-26 20:51:53
阅读次数:
122
回溯法---n-着色问题(3) 以三色问题为例: 对给定无向图着色,相邻点颜色不能相同,限用3种颜色在框架基础上的实现:import java. util.Vector ;public class ThreeColor extends CombineProblem { int[][] graph; ...
分类:
其他好文 时间:
2015-05-26 20:48:59
阅读次数:
118
偏函数(转载) Python的functools模块提供了很多有用的功能,其中一个就是偏函数(Partial function)。要注意,这里的偏函数和数学意义上的偏函数不一样。在介绍函数参数的时候,我们讲到,通过设定参数的默认值,可以降低函数调用的难度。而偏函数也可以做到这一点。举例如下:int(...
分类:
其他好文 时间:
2015-05-26 20:48:20
阅读次数:
142
2个办法 @{ int hour = item.track / 3600; int min = (item.track - hour * 3600) / 60; int sen = item.track - hour * 3600 - min * 60; ...