摘要:
#include<windows.h>#include<iostream.h>#include<stdio.h>HANDLE g_hProcess;DWORD dwGoalAddr[1024],count;int CompareAPage(DWORD dwBase,DWORD goal){ DWORD i; BYTE arBytes[4096]; if(!::ReadProcessMemory(g_hProcess,(LPVOID)dwBase,arBytes,4096,NULL)) { return FALSE; } DWORD * lpDw... 阅读全文
摘要:
查找进程中QQ进程并终止该进程#include<windows.h>#include<stdio.h>#include<tlhelp32.h>DWORD FindProcess(char * fileName)//查找进程{ PROCESSENTRY32 pe32={sizeof(PROCESSENTRY32)}; HANDLE hSnapshot=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0); if(hSnapshot==INVALID_HANDLE_VALUE) { printf("获取进程快照失 阅读全文
摘要:
简单的01背包,关键是找路径,通过此题对01背包找路径有了更深的认识了。#include<iostream>#include<cstdio>#include<cstring>#include<stack>using namespace std;int res[100010],nPath[100010],father[100010],data[110];int work(int goal,int n){ int i,j; memset(res,0,sizeof(res)); memset(nPath,0,sizeof(nPath)); memset 阅读全文