1、最近编写了几个工厂需要的test
pattern,用于UHD120和UHD60的pannel上,其中UHD120需要做半分屏处理,存储一行。2、最近写了UHD120/60/30缩放到FHD120/60/30的算法,采用的算法是双线性算法,相邻4点取平均得到的。需要进行行的存储。注意DPRAM的使...
分类:
其他好文 时间:
2014-05-27 00:17:14
阅读次数:
256
Scala中的match, 比起以往使用的switch-case有著更強大的功能, 1. 傳統方法
def toYesOrNo(choice: Int): String = choice match { case 1 => "yes" case 0
=> "no" case _ => "error"...
分类:
其他好文 时间:
2014-05-26 20:45:46
阅读次数:
285
最近在阅读Framework Design
Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not
expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
分类:
其他好文 时间:
2014-05-26 12:32:20
阅读次数:
294
qsort直接排序。 1 #include 2 #include 3 #include 4 5
#define MAXNUM 1000 6 7 typedef struct { 8 int index; 9 double statis;10 }
node_st;11 12 ...
分类:
其他好文 时间:
2014-05-26 10:05:44
阅读次数:
229
The design concept of the mobile crushers is to
combine the application of the machine and the environment protection
effect.Industrial Belt Conveyor ...
分类:
其他好文 时间:
2014-05-26 10:00:08
阅读次数:
228
The concept of STL is based on a separation of
data and operations. The data is managed by container classes, and the
operations are defined by config...
分类:
其他好文 时间:
2014-05-26 09:43:55
阅读次数:
288
单例模式(Singleton
pattern)是一种创建型模式,它会限制应用程序,使其只能创建某个类类型的单一实例。举例来说,一个Web站点将会需要一个数据库连接对象,但是应该有且只有一个,因此我们需要使用单例模式来实现。eg:_settings[$index]
= $value; } f...
分类:
Web程序 时间:
2014-05-26 06:20:06
阅读次数:
319
装饰者模式(Decorator Pattern) Java的IO类 使用方法
本文地址: http://blog.csdn.net/caroline_wendy/article/details/26716823
装饰者模式(decorator pattern)参见: http://blog.csdn.net/caroline_wendy/article/details/2670...
分类:
编程语言 时间:
2014-05-25 00:55:05
阅读次数:
346
DataUml Design 代码模板完全基于C#语言来编写的。不懂写模板的可以请教作者,随时欢迎。下面是一段模板代码,这段代码可以获取一个类结构的所有信息。
#@ template language="C#" HostSpecific="True" #>
#
NetUmlTemplateCodeHost host =...
分类:
其他好文 时间:
2014-05-25 00:26:23
阅读次数:
312
装饰者模式(Decorator Pattern) 详解
本文地址: http://blog.csdn.net/caroline_wendy
装饰者模式(Decorator Pattern):
动态地将责任附加到对象上. 若要扩展功能, 装饰者提供了比继承更有弹性的替代方案.
使用方法:
1. 首先创建组件(Component)父类, 所有类,
具体组件(...
分类:
其他好文 时间:
2014-05-24 20:45:41
阅读次数:
317