-
抽象工厂
主要是一些初学者对C#抽象工厂的理解。和使用反射,加深对抽象工的理解能力我的程序中有需要一系列的对象,比如apple,orange…, 要想利用他们,我们就必须在程序中根据用户要求,然后一个个调用 new 操作符来生成他们,这样客户程序就要知道相应的类的信息,生成的代码显然不够灵活。我们可以在代码中不利用具体的类,而只是说明我们需要什么,然后就能够得到我们想要的对象吗?
哦,我们都看设计模式,听吧,很多人都在那里鼓吹他们是如何如何的棒,我们看看怎么样利用他们来解决问题。目标明确了,那我们看看哪个能够符合我们的要求。GoF的《设计模式》都看过吧,似懂非懂的看了一些,那我们看看能够不能够“凑”上去呢?J 嗯,我们的程序考虑的是对象怎么创建的,创建型模式应该符合要求吧。然后我们浏览一下各模式的“意图”部分。呵呵,第一个好像就撞到彩了, 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-25 17:25:58下载
- 积分:1
-
A (Simple) OpenGL Framework Library. I will show an example usage of the GLFW: I...
A (Simple) OpenGL Framework Library. I will show an example usage of the GLFW: I will show you how to setup and run an OpenGL application using my library. The output generated will be a simple RGB-filled triangle in a black window however, even if it is not really sophisticated, it will perfectly fit our requirement. The operation consists of various steps that we will analyze individually.-A (Simple) OpenGL Framework Library. I will show an example usage of the GLFW: I will show you how to setup and run an OpenGL application using my library. The output generated will be a simple RGB-filled triangle in a black window however, even if it is not really sophisticated, it will perfectly fit our requirement. The operation consists of various steps that we will analyze individually.
- 2023-08-19 04:05:04下载
- 积分:1
-
the procedures used VB, and its function is used for recording and easily unders...
本程序用VB开发,其功能是用于录音,简单易懂》-the procedures used VB, and its function is used for recording and easily understood "
- 2023-02-05 14:50:03下载
- 积分:1
-
提出一种改进的禁忌搜索算法来求解背包问题。该算法基于禁忌搜索技术,并采用I&D策略,同时设计了两种针对局
部最优解的变异算子。改进后的算法能有效地弥补标准...
提出一种改进的禁忌搜索算法来求解背包问题。该算法基于禁忌搜索技术,并采用I&D策略,同时设计了两种针对局
部最优解的变异算子。改进后的算法能有效地弥补标准禁忌算法对初始解依赖的缺陷,同时也避免了搜索停滞的现象。通过对具
体实例和随机问题的测试,表明改进后的禁忌搜索算法有更好的性能。
关-An improved tabu search algorithm to solve knapsack problem. The algorithm is based on tabu search techniques, using I & D strategies, while designed for the local optimal solution of the two kinds of mutation operator. The improved algorithm can effectively compensate for the standard tabu search algorithm depends on the initial solution defect, but also to avoid the phenomenon of search stagnation. Through specific examples and random-question test, indicating that the improved tabu search algorithm has better performance. Guan
- 2022-05-24 04:09:08下载
- 积分:1
-
web端修改密码源代码,请各位同仁交流看看有没有更好的。
web端修改密码源代码,请各位同仁交流看看有没有更好的。-Change Password web client source code, please take a look at Tongren exchange have no better.
- 2022-02-14 12:56:36下载
- 积分:1
-
求分子、分母的最大公约数,并将分子、分母组合成“分子/分母”形式的字符串...
求分子、分母的最大公约数,并将分子、分母组合成“分子/分母”形式的字符串-Seeking elements, the denominator of the common denominator and the numerator and denominator to form " molecules/denominator" form of a string
- 2022-04-27 19:02:19下载
- 积分:1
-
at91sam7x256 多套源码
atm91sam7x256资源,多套源码.含有分支adc,dataflash,usart,和emac,等多部分代码。我也是之前在其他同学共享的代码,支持开源,支持免积分。其中还包含twi,sd和usb等多部分教程。希望给大家帮助。希望大家多多下载哈。
- 2022-03-01 14:26:19下载
- 积分:1
-
图形学程序,z缓冲绘图,实现光照模型,有反射,透射,直接光照,局部光照,并且按x,y,z可以实现图像转动...
图形学程序,z缓冲绘图,实现光照模型,有反射,透射,直接光照,局部光照,并且按x,y,z可以实现图像转动-Graphics program, z buffer mapping, illumination model realize, have reflection, transmission, direct illumination, local illumination, and by x, y, z can realize image rotation
- 2022-03-06 14:43:57下载
- 积分:1
-
wince5.0 keyboard hook
WINCE5.0 下键盘鼠标钩子源码
注:WINCE6下貌似不能用-wince5.0 keyboard hook
- 2022-04-20 11:03:59下载
- 积分:1
-
记事本源码,很不错,基本实现了功能,可改进。
记事本源码,很不错,基本实现了功能,可改进。-Notepad source, it is true that the basic realization of the function, could be improved.
- 2022-03-28 19:22:40下载
- 积分:1