概述
将一个具体类的实例化交给一个静态工厂方法来执行,它不属于GOF的23种设计模式,但现实中却经常会用到角色 工厂类(Simple Factory):
只包含了创建具体类的静态方法。 抽象产品(Product):定义简单工厂中要返回的产品。 具体产品(ConcreteProduct):具体...
分类:
其他好文 时间:
2014-05-01 12:02:59
阅读次数:
392
第Ⅰ部分 开篇 序章第Ⅱ部分 创建型模式篇第1章 单例模式(Single
Pattern)第2章 简单工厂模式(SampleFactory)第3章 抽象工厂模式(Abstract Factory) 第4章 建造者模式(Builder
Pattern)第5章 原型模式(Protype Pattern)...
分类:
其他好文 时间:
2014-05-01 11:39:35
阅读次数:
425
网上找了很多,可只是给出代码,没有详细解释,不便初学者理解.我就抄回冷饭.把这个再拿出来说说.实例图片:首先建立一个标准的Win32
Application工程.选择a simple Win32
Application.然后建立我们的资源文件首先新建一个对话框资源,资源ID改为IDD_MAIN_DL...
分类:
编程语言 时间:
2014-05-01 00:30:32
阅读次数:
868
Description There are N cities in a country, and
there is one and only one simple path between each pair of cities. A merchant
has chosen some paths a...
分类:
其他好文 时间:
2014-04-30 17:09:30
阅读次数:
570
真的越来越喜欢web前端了。 本来一直觉得
游戏开发是个很高深的话题,虽然之前也会写点动态的网页,运动的对象,跳动的小球之类的简单动画,直到我遇到了JavaScript,jquery库。其实,最开始学习
JavaScript,感觉这是一门杂乱无章的弱语言,没有 C 和 C++ 或者 Java ...
分类:
其他好文 时间:
2014-04-30 16:30:06
阅读次数:
543
官方地址:http://fluentdata.codeplex.com/documentationMYSQL:MySQL through theMySQL
Connector .NET driver.连接字符串:Server=127.0.0.1;Database=testDB;Uid=root;Pw...
分类:
数据库 时间:
2014-04-29 17:23:46
阅读次数:
594
where do i beginto tell a story of how great a love
can bethe sweet love story that is older than the seathe simple truth about the
love she brings to...
分类:
其他好文 时间:
2014-04-29 17:18:46
阅读次数:
342
在做活动项目时需要对时间的限制 就写模仿 crontab 写了一个
# utf-8
# '* * * * *' -> 分 时 日 月 周
# '* * * 1-3 *' -> 分 时 日 月 周
# '* * * 1,2,3 *' -> 分 时 日 月 周
# 01-59 01-23, 01-31, 01-12, 0-6
# simple : CrontabUtil....
分类:
其他好文 时间:
2014-04-29 13:44:20
阅读次数:
312
A Simple Problem with Integers
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 55626
Accepted: 16755
Case Time Limit: 2000MS
Description
You have N...
分类:
其他好文 时间:
2014-04-28 10:23:41
阅读次数:
282
http://poj.org/problem?id=2947
大致题意:
有n种装饰物,m个已知条件,每个已知条件的描述如下:
p start end
a1,a2......ap (1
第一行表示从星期start到星期end一共生产了p件装饰物(工作的天数为end-start+1+7*x,加7*x是因为它可能生产很多周),第二行表示这p件装饰物的种类(可能出现相同的种类,即ai=aj)。...
分类:
其他好文 时间:
2014-04-27 21:12:04
阅读次数:
339