文件名称:DesignPattern
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 74kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
《大话设计模式》之一:
C++实现源码,主要包括:
1、简单工厂模式
2、工厂方法模式(提供通用实现方法,可以直接复用)
3、抽象工厂模式(利用反射,并提供反射源码,可以直接拿来复用)
4、迭代器模式
5、单例模式(支持线程安全)
6、状态模式(游戏中常用模式)
7、策略模式
8、模板方法模式
9、责任链模式
10、装饰模式-hello world
C++实现源码,主要包括:
1、简单工厂模式
2、工厂方法模式(提供通用实现方法,可以直接复用)
3、抽象工厂模式(利用反射,并提供反射源码,可以直接拿来复用)
4、迭代器模式
5、单例模式(支持线程安全)
6、状态模式(游戏中常用模式)
7、策略模式
8、模板方法模式
9、责任链模式
10、装饰模式-hello world
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DesignPattern\AbstractFactory\AbstractFactory.cpp
.............\...............\AbstractFactory.vcproj
.............\...............\AbstractFactory.vcproj.CHENCHEN-THINK.Chzf.user
.............\...............\AbstractFactory.vcproj.CHENZHIFENG.DevUser.user
.............\...............\ReadMe.txt
.............\...............\..flection\BasicType.h
.............\...............\..........\tClass.cpp
.............\...............\..........\tClass.h
.............\...............\..........\tKernel.cpp
.............\...............\..........\tKernel.h
.............\...............\..........\tNode.cpp
.............\...............\..........\tNode.h
.............\...............\..........\tUtil.cpp
.............\...............\..........\tUtil.h
.............\...............\stdafx.cpp
.............\...............\stdafx.h
.............\...............\targetver.h
.............\Decorator\Decorator.cpp
.............\.........\Decorator.vcproj
.............\.........\Decorator.vcproj.CHENCHEN-THINK.Chzf.user
.............\.........\Decorator.vcproj.CHENZHIFENG.DevUser.user
.............\.........\ReadMe.txt
.............\.........\stdafx.cpp
.............\.........\stdafx.h
.............\.........\targetver.h
.............\DesignPattern.sln
.............\DesignPattern.suo
.............\Factory\Factory.cpp
.............\.......\Factory.vcproj
.............\.......\Factory.vcproj.CHENCHEN-THINK.Chzf.user
.............\.......\Factory.vcproj.CHENZHIFENG.DevUser.user
.............\.......\ReadMe.txt
.............\.......\stdafx.cpp
.............\.......\stdafx.h
.............\.......\targetver.h
.............\.......Method\FactoryMethod.cpp
.............\.............\FactoryMethod.vcproj
.............\.............\FactoryMethod.vcproj.CHENCHEN-THINK.Chzf.user
.............\.............\FactoryMethod.vcproj.CHENZHIFENG.DevUser.user
.............\.............\ReadMe.txt
.............\.............\stdafx.cpp
.............\.............\stdafx.h
.............\.............\targetver.h
.............\Iterator\Aggregate.cpp
.............\........\Aggregate.h
.............\........\Iterator.cpp
.............\........\Iterator.h
.............\........\Iterator.vcproj
.............\........\Iterator.vcproj.CHENCHEN-THINK.Chzf.user
.............\........\Iterator.vcproj.CHENZHIFENG.DevUser.user
.............\........\main.cpp
.............\........\ReadMe.txt
.............\........\stdafx.cpp
.............\........\stdafx.h
.............\........\targetver.h
.............\ResponsibilityChain\ReadMe.txt
.............\...................\ResponsibilityChain.cpp
.............\...................\ResponsibilityChain.vcproj
.............\...................\ResponsibilityChain.vcproj.CHENCHEN-THINK.Chzf.user
.............\...................\ResponsibilityChain.vcproj.CHENZHIFENG.DevUser.user
.............\...................\stdafx.cpp
.............\...................\stdafx.h
.............\...................\targetver.h
.............\Singleton\main.cpp
.............\.........\ReadMe.txt
.............\.........\Singleton.cpp
.............\.........\Singleton.h
.............\.........\Singleton.vcproj
.............\.........\Singleton.vcproj.CHENCHEN-THINK.Chzf.user
.............\.........\Singleton.vcproj.CHENZHIFENG.DevUser.user
.............\.........\stdafx.cpp
.............\.........\stdafx.h
.............\.........\targetver.h
.............\.........\ThreadLock.h
.............\.tate\main.cpp
.............\.....\ReadMe.txt
.............\.....\State.cpp
.............\.....\State.h
.............\.....\State.vcproj
.............\.....\State.vcproj.CHENCHEN-THINK.Chzf.user
.............\.....\State.vcproj.CHENZHIFENG.DevUser.user
.............\.....\stdafx.cpp
.............\.....\stdafx.h
.............\.....\targetver.h
.............\.....\Work.cpp
.............\.....\Work.h
.............\..rategy\ReadMe.txt
.............\........\stdafx.cpp
.............\........\stdafx.h
.............\........\Strategy.cpp
.............\........\Strategy.vcproj
.............\........\Strategy.vcproj.CHENCHEN-THINK.Chzf.user
.............\.......
.............\...............\AbstractFactory.vcproj
.............\...............\AbstractFactory.vcproj.CHENCHEN-THINK.Chzf.user
.............\...............\AbstractFactory.vcproj.CHENZHIFENG.DevUser.user
.............\...............\ReadMe.txt
.............\...............\..flection\BasicType.h
.............\...............\..........\tClass.cpp
.............\...............\..........\tClass.h
.............\...............\..........\tKernel.cpp
.............\...............\..........\tKernel.h
.............\...............\..........\tNode.cpp
.............\...............\..........\tNode.h
.............\...............\..........\tUtil.cpp
.............\...............\..........\tUtil.h
.............\...............\stdafx.cpp
.............\...............\stdafx.h
.............\...............\targetver.h
.............\Decorator\Decorator.cpp
.............\.........\Decorator.vcproj
.............\.........\Decorator.vcproj.CHENCHEN-THINK.Chzf.user
.............\.........\Decorator.vcproj.CHENZHIFENG.DevUser.user
.............\.........\ReadMe.txt
.............\.........\stdafx.cpp
.............\.........\stdafx.h
.............\.........\targetver.h
.............\DesignPattern.sln
.............\DesignPattern.suo
.............\Factory\Factory.cpp
.............\.......\Factory.vcproj
.............\.......\Factory.vcproj.CHENCHEN-THINK.Chzf.user
.............\.......\Factory.vcproj.CHENZHIFENG.DevUser.user
.............\.......\ReadMe.txt
.............\.......\stdafx.cpp
.............\.......\stdafx.h
.............\.......\targetver.h
.............\.......Method\FactoryMethod.cpp
.............\.............\FactoryMethod.vcproj
.............\.............\FactoryMethod.vcproj.CHENCHEN-THINK.Chzf.user
.............\.............\FactoryMethod.vcproj.CHENZHIFENG.DevUser.user
.............\.............\ReadMe.txt
.............\.............\stdafx.cpp
.............\.............\stdafx.h
.............\.............\targetver.h
.............\Iterator\Aggregate.cpp
.............\........\Aggregate.h
.............\........\Iterator.cpp
.............\........\Iterator.h
.............\........\Iterator.vcproj
.............\........\Iterator.vcproj.CHENCHEN-THINK.Chzf.user
.............\........\Iterator.vcproj.CHENZHIFENG.DevUser.user
.............\........\main.cpp
.............\........\ReadMe.txt
.............\........\stdafx.cpp
.............\........\stdafx.h
.............\........\targetver.h
.............\ResponsibilityChain\ReadMe.txt
.............\...................\ResponsibilityChain.cpp
.............\...................\ResponsibilityChain.vcproj
.............\...................\ResponsibilityChain.vcproj.CHENCHEN-THINK.Chzf.user
.............\...................\ResponsibilityChain.vcproj.CHENZHIFENG.DevUser.user
.............\...................\stdafx.cpp
.............\...................\stdafx.h
.............\...................\targetver.h
.............\Singleton\main.cpp
.............\.........\ReadMe.txt
.............\.........\Singleton.cpp
.............\.........\Singleton.h
.............\.........\Singleton.vcproj
.............\.........\Singleton.vcproj.CHENCHEN-THINK.Chzf.user
.............\.........\Singleton.vcproj.CHENZHIFENG.DevUser.user
.............\.........\stdafx.cpp
.............\.........\stdafx.h
.............\.........\targetver.h
.............\.........\ThreadLock.h
.............\.tate\main.cpp
.............\.....\ReadMe.txt
.............\.....\State.cpp
.............\.....\State.h
.............\.....\State.vcproj
.............\.....\State.vcproj.CHENCHEN-THINK.Chzf.user
.............\.....\State.vcproj.CHENZHIFENG.DevUser.user
.............\.....\stdafx.cpp
.............\.....\stdafx.h
.............\.....\targetver.h
.............\.....\Work.cpp
.............\.....\Work.h
.............\..rategy\ReadMe.txt
.............\........\stdafx.cpp
.............\........\stdafx.h
.............\........\Strategy.cpp
.............\........\Strategy.vcproj
.............\........\Strategy.vcproj.CHENCHEN-THINK.Chzf.user
.............\.......