自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

那年夏天我收获了一朵云

  • 博客(29)
  • 资源 (6)
  • 收藏
  • 关注

转载 排序比较好的文章

快速排序算法http://blog.csdn.net/lemon_tree12138/article/details/50622744堆排序https://www.cnblogs.com/Kevin-mao/p/5903234.html选择排序和优化http://blog.csdn.net/peiyao456/article/details/53240482希尔排序https://www.cnbl...

2018-03-16 14:20:24 374 1

原创 WSAEventSelect服务端

// 下载地址 https://download.csdn.net/download/u010907036/10284533// InitSocket.h#pragma once#include <WinSock2.h>#include <string>using namespace std;class InitSocket{private: // 通信端口 int m_n...

2018-03-13 17:32:30 221

原创 使用OD从零开始Cracking

CrueHead’a的CrackMe 注册机// ConsoleApplication23.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;int main(){string name;cin >> name;int le

2017-01-25 14:54:38 1131 1

原创 使用olldbg从入门到精通之splish注册机代码

// ConsoleApplication20.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;int main(){string name;cin >> name;string seri;//cin >> seri;int

2017-01-23 21:35:07 482

原创 Hook自定义MessageBox

// HookMsgBox.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "windows.h"#include #include using namespace std;// MessageBoxW函数原型// int WINAPI MessageBoxW(__in_opt HWND hWnd,__in_opt LPCWS

2016-09-18 16:44:12 952

原创 c++ 写注册表 并将exe添加到开机启动

// CreateRegedit.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ HKEY hPrimaryKey = HKEY_LOCAL_MACHINE; TCHA

2016-02-21 21:18:03 862

原创 c++ 读注册表信息 读取CPU信息

// regedit_find.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;const int BUFFER_SIE = 1000;int _tmain(int argc, _TCHAR* argv[]){ long lRet; HKEY

2016-02-21 20:21:40 492

原创 Chartpter1 Install the MASM32 SDK

Authour:Wei.JiangCreateTime:2016/2/16 一.Install the MASM32 SDKPls Download it from www.masm32.com.This is a compression software. Open it and just DoubleClick the install.exe.After selecting

2016-02-16 19:17:12 535

原创 c++中介者模式

#include "stdafx.h"#include #include using namespace std;typedef string State;class Colleague;class Mediator{public: virtual void AToB() = 0; virtual void BToA() = 0; virtual void IntroC

2015-10-21 21:24:52 367

原创 c++代理模式

#include "stdafx.h"#include using namespace std;class Subject{public: virtual void display() = 0;};class ConcreteSubject:public Subject{public: void display() {coutdisplay(); } ~Proxy() {delete m_pSub

2015-10-09 23:17:36 361

转载 (转)第零章 序 我的云朵小姐 又名 孤独的程序员

我叫段蔚,一名程序员。她叫李芸。我想讲一个正在发生着的故事。

2015-10-09 08:11:34 327

原创 c++享元模式

#include "stdafx.h"#include #include #include #include #include using namespace std;enum Color {WHITE, BLACK, GRAY};struct Position{ int cx; int cy;};bool cmp(const Position& Fist, con

2015-10-06 12:10:00 393

原创 c++装饰模式

#include "stdafx.h"#include #include using namespace std;class Component{public: virtual void Method() = 0;};class ConcreteComponent:public Component{public: void Method();};void Con

2015-10-05 13:43:56 346

原创 c++组合模式和原型模式一起使用

#include "stdafx.h"#include #include using namespace std;class Component{public: virtual Component* clone() = 0; virtual void operation() = 0; virtual void Add(Component* pComponent) {} vir

2015-10-04 23:46:40 373

原创 c++外观模式

#include "stdafx.h"#include using namespace std;class FunA{public: void display() {cout<<"FunA is working"<<endl;}};class FunB{public: void display() {cout<<"FunB is working"<<endl;}};

2015-10-04 13:10:55 606

原创 c++桥接模式

#include "stdafx.h"#include using namespace std;class SoftWare{public: virtual void display() = 0;};class SoftWareA:public SoftWare{ void display() {cout<<"soft a was finished"<<endl;}};

2015-10-04 12:06:10 419

原创 c++原型模式

#include "stdafx.h"#include using namespace std;class Prototype{public:virtual Prototype* clone() const = 0;virtual int GetScore() const = 0;virtual void SetScore(int& temp) =

2015-10-04 10:43:41 316

原创 c++建造者模式

// ConsoleApplication1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>//#include "Factory.h"using namespace std;class Man{public: Man():flag(

2015-10-04 10:40:22 375

原创 无名

人生是个什么东西

2015-10-04 00:07:02 280

原创 c++对象适配器

// ConsoleApplication1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include //#include "Factory.h"using namespace std;class Target{public

2015-10-03 17:04:15 414

原创 c++类适配器

// ConsoleApplication1.cpp : Defines the entry point for the console application.//Target生成对象是合理的,so不用纯虚函数#include "stdafx.h"#include //#include "Factory.h"using namespace std;

2015-10-03 16:57:28 362

原创 c++抽象工厂模式

// ConsoleApplication1.cpp : Defines the entry point for the console application.// 这是违背开放封闭原则的:增加产品需修改工厂类#include "stdafx.h"#include //#include "Factory.h"using namespace std;

2015-10-02 22:01:56 486

原创 c++工厂模式

//解决了简单工厂模式违背了开闭原则的问题// ConsoleApplication1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include //#include "Factory.h"using namespace std;

2015-10-02 17:44:23 611

原创 c++简单工厂模式

// ConsoleApplication1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include //#include "Factory.h"using namespace std;class Product{p

2015-10-01 21:17:33 341

原创 c++单例模式(线程安全)

1.构造函数为private,生成对象的时候,编译器调用构造函数属于外部调用。2.构造函数为private不能被继承,因为当其子类初始化的时候需要调用构造函数,但此时构造函数为private,不能被调用。所以,该类只有一个实例。静态实例初始化在程序开始时进入主函数之前就由主线程以单线程方式完成了初始化,不必担心多线程问题。

2015-10-01 16:39:49 372

原创 链表逆置

#includeusing namespace std;struct Node{int data;Node *next;};int main(){int n;while(cin>>n){int i;Node *root=new Node;Node *r=root;int x;for(i=0;i{Node *p=

2015-03-26 21:19:30 724

原创 约瑟夫环输出出队的人的序号,数组模拟

#include #include  int peoples[100];  int main(void){    int people_count = 0;    printf("请输入总人数: ");    scanf("%d", &people_count);      int m;//每隔m个人就淘汰一个     printf("\n每隔多少个

2014-07-01 18:53:40 2586

原创 单链表的一些操作

#includeusing namespace std;typedef char elemtype;//以char型为例struct Node{ elemtype data; Node *next;};Node *Create_W();//使用尾插法建立单链表Node *Create_T();//使用头插法每次新节点总是作为首元节点插入在链表的头节点之后。

2014-03-06 21:58:49 466

原创 二叉树入门(对称二叉树)

#include#include#define N 110//定义宏并非多此一举,建议善用宏using namespace std;char str[N];int len;//字符串的长度struct BTreeNode{ char data;//data的类型依题意而定 BTreeNode *lchild; BTreeNode *rchild;};BTreeNo

2014-03-05 21:05:47 1046

WSAEventSelect模型服务端与测试程序

本来想不要积分的,但是没得办法,这里最低选择2分

2018-03-13

dll注入工具

dll注入,远程线程注入,mfc编写

2016-10-09

hook所有程序的messagebox

修改IAT的方式

2016-10-09

全局鼠标钩子mousehook

入门级鼠标钩子学习

2016-10-09

Hook自定义MessageBox

vs2015下编写的hook入门 指hook自己的msgbox

2016-09-18

Mfc_Vs2015_GetLasstError错误码对应文本信息转换器

Mfc_Vs2015_GetLasstError错误码对应文本信息转换器

2016-09-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除