所属分类:
软件设计/软件工程
开发工具:Visual C++
文件大小:3KB
下载次数:2
上传日期:2006-04-26 08:24:55
说明: 经典著作《设计模式》中将策略模式定义为:定义一系列的算法,把它们一个个的封装起来,并且使它们可以相互转换。这个定义还是比较抽象,下面我将通过一个例子来具体的讲解策略模式。感觉这样更容易帮助新手理解模式,这也是《Head First Design Patterns》中讲解模式的方法。先来描述一下用到的例子的背景资料:
(classics "design mode" model strategy will be defined as : definition of a series of algorithms, put them in a package, and enable them to conversion. This definition is quite abstract, I will be below a specific example to explain the strategy mode. This feeling of helping newcomers more easily understood model, This is the "Head First Design Patterns" on the modality approach. First used to describe examples of background information :)
文件列表:
SingelHorse_1
.............\ReadMe.txt
.............\SingelHorse_1.cpp
.............\SingelHorse_1.dsp
.............\SingelHorse_1.dsw
.............\StdAfx.cpp
.............\StdAfx.h