内存修改(CUI)

共三个文件,vc6.0下测试通过 ProcessInfo.h #ifndef PROCESSINFO_H#define PROCESSINFO_H #include <windows.h>#include <tlhelp32.h>#include <vector>#include <iostream> using namespace std ; class ProcessInfo{public: BOOL ShowProcess () ; DWORD GetProcessId(int ID) {return processArry[ID-1] ;}private: v...
默认分类 | 2009-07-28 15:31 | 阅读 2057 次 | 评论 0 条

贪吃蛇

#include <graphics.h>#include <bios.h>#include <stdlib.h> #define ESC 0x011b#define UP 0x4800#define DOWN 0x5000#define LEFT 0x4b00#define RIGHT 0x4d00 struct Snake{int x,y;} snak[500];struct Food {int x,y;} food;int float_esc,float_up,float_down,float_left,float_right,float_eat=0;int sc...
默认分类 | 2008-08-28 12:46 | 阅读 3693 次 | 评论 5 条

九方格游戏

/*key 80 下 72 上 77 右 75 左*/ #include <stdio.h>#include <stdlib.h>#include <conio.h> int num[9];int setp=0; start(){int i;int a,b;randomize();for(i=0;i<8;i++) num[i]=i+1;num[8]=0;for(i=0;i<100;i++) { a=random(8); b=(a+2)%8; chage(a,b); }game();} chage(int a,int b){int temp=num[a];num[a]=num...
默认分类 | 2008-08-25 17:53 | 阅读 8854 次 | 评论 0 条

镜像劫持和映像劫持

所谓的镜像劫持,就是在注册表的[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Image File Execution Options]处新建一个以杀毒软件主程序命名的项,例如Rav.exe。然后再创建一个子键“Debugger="C:\\WINDOWS\\ system32\\drivers\\ceffen.com”。以后只要用户双击 Rav.exe就会运行OSO的病毒文件ceffen.com,类似文件关联的效果 映像劫持windows映像劫持技术(IFEO)基本症状:可能有朋友遇到过这样的情况,一个...
默认分类 | 2008-04-11 19:45 | 阅读 3582 次 | 评论 1 条

n阶幻方(3阶改进)

#include <iostream.h>void huanfang(int );void main(){int shu=3;cout<<"请输入n阶幻方n的值"<<endl;while(shu>=1){cin>>shu; huanfang(shu);cout<<endl;cout<<"请再次输入n阶幻方n的值"<<endl;}} void huanfang(int q){int n=1,m=1,j=0,k=0;if( q%2!=0 ){m=n=qint **a=new int*[n]; for(int x=0;x<n;x++) a[x]=new int[n];{a[n-1][(n...
默认分类 | 2008-04-09 16:40 | 阅读 2984 次 | 评论 0 条

3阶幻方

#include "iostream.h"void main(){int a[3][3];int k1,k2;for (k1=0;k1<=2;k1++) for (k2=0;k2<=2;k2++) a[k1][k2]=0;int n,m;n=m=3;m=m/2;n--;int j=1;a[n][m]=j;j++; for(;j<=3*3;j++){n++;m++;if((j-1)%3==0) {n-=2;m-=1;}if(n>2) {n=0;a[n][m]=j;}else if(m>2) {m=0;a[n][m]=j;}else a[n][m]=j;} int z1,z2;for(z...
默认分类 | 2008-04-03 14:06 | 阅读 2059 次 | 评论 0 条

图书管理系统

/**********************///图书管理系统V1.0//作者: ntdom//E-mail:ntdom@163.com/**********************/ /*文件cr.h*/ class cr{public:void setcr(int cbh,int cjg,int cn);int c[3];}; void cr::setcr(int cbh,int cjg,int cn){c[0]=cbh;c[1]=cjg;c[2]=cn;} /*文件yf.h*/ class yf{public:void setyf(int fbh,int fn);...
默认分类 | 2008-03-26 12:31 | 阅读 2385 次 | 评论 0 条

进制转换思考

#include <iostream.h>#include <stdlib.h> void jz(int n,int z){int p[99];int i;for(i=0;i<100;i++){p[i]=n%z;n=n/z;if (n<z-1) break;else continue; }for(;i>=0;i--) cout<<p[i];cout<<endl;} void main(){void jz(int,int);int n,z;cout<<"输入数值(十进制),进制(十进制以内)"<<endl;cin>>n>>z;cout<<n<<"的"<<z<<"进制是:";jz(n,...
默认分类 | 2008-03-17 12:20 | 阅读 1992 次 | 评论 0 条

QQ聊天工具

通过腾讯临时会话代码实现:QQ强行聊天工具 QQ-Chat.vbs'/*=========================================================================' * Intro 通过腾讯临时会话代码实现:QQ强行聊天工具' * FileName QQ-Chat.vbs' * Author yongfa365' * Version v1.0' * LastModify 2007-08-31 15:11:50' *======================================...
默认分类 | 2008-03-10 12:47 | 阅读 2177 次 | 评论 0 条

穷举算法

//*******************************************************************//在许多情况下我们需要穷举组合的算法,比如密码词典。//这个算法的关键是密码下标进位的问题。//另外本例子中的写文件语句效率比较低,为了降低算法复杂度没有优化。//如果要提高写文件的效率,可以使用缓冲区,分批写入。//*********************************************breath.cnpick.com***** #define passwordmax 8 //将生成密码的最大长度 void createpas...
默认分类 | 2008-03-10 12:45 | 阅读 2431 次 | 评论 4 条

猜数字

#include "stdlib.h"#include "stdio.h"#include "time.h"int main(void){int a0,b0,c0,d0;int a1,b1,c1,d1;int A;int B;int n;char chr;/*开始界面*/printf("*****huan ying shi yong*****\n");printf("*********cai shuo zi********\n");printf("*********by:bcvg_ts*********\n");printf("********OICQ:340194658******\n...
默认分类 | 2008-03-10 12:43 | 阅读 1721 次 | 评论 0 条

一切从头开始

仿佛是在世界上转了一大圈 最后才发现 电脑还是我生活的最重要的一部分 离开的太久 似乎什么都忘记了 那么 一切从头开始吧
默认分类 | 2008-03-10 12:34 | 阅读 952 次 | 评论 0 条
浏览34883次
文章分类