分析:产品之间存在着共性——需引入接口 ——定义共性——抽象产品类 工厂共同实现的接口——定义共同接口——抽象工厂类相关UML图:类总括:具体代码:using System;using System.Collections.Generic;using System.Lin...
分类:
其他好文 时间:
2015-11-07 10:48:43
阅读次数:
206
1.lin语句 int[] nums = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0, 3 }; DataTable table = new DataTable("Numbers"); table.Columns.Add(...
分类:
其他好文 时间:
2015-11-05 22:15:59
阅读次数:
264
http://www.tuicool.com/articles/v6j2AbSnort is by far the most popular open-source network intrusion detection and prevention system (IDS/IPS) for Lin...
分类:
系统相关 时间:
2015-11-02 17:21:29
阅读次数:
291
目前lua集成protobuf主要有两种方式1. protobuf-gen-lua方案https://github.com/sean-lin/protoc-gen-lua 参照说明即可集成这个方案是将proto文件导出成lua文件, 使用起来稍微麻烦, 不能直接创建lua table, 而是要用生成...
分类:
其他好文 时间:
2015-10-30 00:50:33
阅读次数:
1146
在软件系统中,经常有这样一些特殊的类,必须保证它们在系统只只存在一个实例,才能确保它们的逻辑正确性,以及良好的效率,如何绕过常规的构造器,提供一种机制来保证一个类只有一个实例。using System;using System.Collections.Generic;using System.Lin...
分类:
其他好文 时间:
2015-10-29 21:29:45
阅读次数:
168
从Windows Sublime 写好一shell脚本,移到 Linux下,发现报错,/bin/sh^M: bad interpreter: No such file or directory原因:这是不同系统编码格式引起的:在 windows系统中编辑的 .sh文件可能有不可见字符,所以在 Lin...
分类:
系统相关 时间:
2015-10-27 16:55:26
阅读次数:
213
家庭作业3.70(1)生成以上代码的C版本Long traverse(tree_ptrtp){Long v=MAX_LONG,rv,lv;If (tp!=NULL){lv=traverse(tp->left);rv=traverse(tp->right);v=lvtp->v?tp->v:v//Lin...
分类:
其他好文 时间:
2015-10-26 20:27:45
阅读次数:
105
JDK高性能编程之容器 读书笔记内容部分来源书籍深入理解JVM、互联网等 先放一个类图util,点击打开看明细 j360-jdk调试功能 https://github.com/xuminwlt/j360-jdk 内容 容器 -Collection
List
?ArrayList
?Lin...
分类:
其他好文 时间:
2015-10-17 12:19:27
阅读次数:
363
libSVM简单的介绍libSVM是台湾林智仁(Chih-Jen Lin) 教授2001年开发的一套支持向量机库,这套库运算速度挺快,可以很方便的对数据做分类或回归。由于libSVM程序小,运用灵活,输入参数少,并且是开源的,易于扩展,因此成为目前国内应用最多的SVM的库。其中包含的文件夹的主要的作...
分类:
其他好文 时间:
2015-10-15 23:35:46
阅读次数:
376
#include#include//strcmp()用于比较两个字符串#include//getch()#define max 200char pro[max], lin[20];int n,i,syn;char *word[6]={ "begin", "if" , "then", "while",...
分类:
其他好文 时间:
2015-10-15 15:46:13
阅读次数:
300