建造者模式的意图是将产品的内部表象和产品的生产过程分割开来。类图:示意性代码:package
com.javadesignpattern.builder;public interface Builder { public void
buildPart1(); public voi...
分类:
其他好文 时间:
2014-05-31 17:40:47
阅读次数:
266
package com.jni;public class JNITest { static{
System.loadLibrary("JNI"); } public native String getCompterName(); public
native void fastWriteFile(S....
分类:
其他好文 时间:
2014-05-31 17:01:30
阅读次数:
202
// demo1.cpp : 定义控制台应用程序的入口点。//通过此例程了解重载#include
"stdafx.h"#include using namespace std;class CMath{public:CMath(float
a):m_a(a){}~CMath(){}double Add...
分类:
编程语言 时间:
2014-05-31 16:48:33
阅读次数:
317
动态规划的原理就不多讲了,网上一大堆,google一下就明白了,直接上代码 1 public
class DynamicPlan { 2 // 100 个人 挖 5 个矿 3 private static int peopleCount=100; 4
private stat...
分类:
其他好文 时间:
2014-05-31 15:45:47
阅读次数:
253
实质是检测矩形与circle是否重叠基本函数,判断点是否在circle中1 public
static boolean IsInside( float x, float y, Circle circle ){2 float disX = x -
circle.x;3 ...
分类:
其他好文 时间:
2014-05-31 13:52:49
阅读次数:
186
不要写insert语句,因为数据库字段太多了,有什么简单点的效率高的方法吗public
void MultiInsertData(DataSet ds){ string connt = "Oracle的连接字符串"; string sql =
"select id,name,… from tab.....
分类:
数据库 时间:
2014-05-31 13:05:04
阅读次数:
325
//将money的分转化为元 public String coinToYuan(String
coin) { Double dd = Double.parseDouble(coin); Double ddd = dd / 100; if (dd %
100 == 0) { ...
分类:
其他好文 时间:
2014-05-31 12:41:32
阅读次数:
547
PKCS 全称是Public-KeyCryptography Standards ,是由 RSA
实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过15 个标准。 常用的有:PKCS#7 Cryptographic
Message Syntax Standar....
分类:
其他好文 时间:
2014-05-31 11:12:08
阅读次数:
174
public class ServiceImp :
IService1,IService2,IService3 { public string SayHelloA() { return
"你好,这是第一个服务协定。"; } ...
分类:
其他好文 时间:
2014-05-31 11:08:00
阅读次数:
219
字符串模板第一发,Tire(前缀树)。 1 const int maxnode = 4005*100;
2 const int sigma_size = 30; 3 4 class tire{ 5 public: 6 int
ch[maxnode][sigma_size]; 7 i...
分类:
其他好文 时间:
2014-05-31 07:38:45
阅读次数:
239