《HeadFirst设计模式》策略模式c++实现

时间:2016-07-08 04:16:08
【文件属性】:
文件名称:《HeadFirst设计模式》策略模式c++实现
文件大小:71KB
文件格式:ZIP
更新时间:2016-07-08 04:16:08
设计模式 策略模式 c++ 策略模式: 定义了算法族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。 The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes interchangeable. Strategy lets the algorithm vary independently from clients that use it.
【文件预览】:
Strategy
----stdafx.cpp(19B)
----Release()
--------Strategy.exe(52KB)
----FlyWithWings.cpp(520B)
----FlyBehavior.cpp(442B)
----stdafx.h(86B)
----Strategy.plg(2KB)
----Duck.h(638B)
----Strategy.dsw(539B)
----FlyBehavior.h(558B)
----FlyWithRocket.cpp(536B)
----FlyNoWay.cpp(481B)
----FlyWithWings.h(614B)
----FlyNoWay.h(582B)
----Strategy.ncb(65KB)
----main.cpp(378B)
----Strategy.dsp(5KB)
----Debug()
--------Strategy.exe(192KB)
----FlyWithRocket.h(623B)
----Duck.cpp(943B)
----Strategy.opt(56KB)

网友评论

  • 值得学习,好好观看