public static void main(String[] args) { try { String plainText = "duwenlei"; KeyPairGenerator keyPairGenerator = KeyPair...
分类:
编程语言 时间:
2015-02-26 14:47:30
阅读次数:
245
首页 给出 DataTable 转Json 的方法: 1 public static string TableToJson(DataTable dt) 2 { 3 List> list = new List>(); 4 forea...
Delphi执行DOS命令显示到文本框(TMemo)2007-11-24 22:03procedure CmdExecAndView(FileName: string; memo: TMemo);procedure _AddInfo(mmInfo:TMemo; S: string; var line...
/// /// 底层及数据库操作通用类 /// public class CmdMethods { /// /// 参数标识符 /// public static string preParameter = "@...
分类:
其他好文 时间:
2015-02-26 13:09:56
阅读次数:
196
代码1:WCHAR enumeratorName[64] = {0}; UNICODE_STRING unicodeEnumName; RtlInitUnicodeString(&unicodeEnumName, enumeratorName); unicodeEnumName是指向enume...
分类:
其他好文 时间:
2015-02-26 13:06:31
阅读次数:
122
SecureRandom sr = new SecureRandom();byte[] bytes = new byte[8];bytes = sr.generateSeed(8);System.out.println(new String(Hex.encode(bytes)));
分类:
编程语言 时间:
2015-02-26 13:01:40
阅读次数:
224
using System;using System.IO;class FileTest { public static void Main() { StreamReader srd;string path = @"c:\temp\MyTest.txt"; ...
BroadcastReceive广播接收器:
public class Test extends Activity{
private final String ACTION_NAME = "发送广播";
private Button mBtnMsgEvent = null;
protected void onCreate(Bundle savedI...
分类:
其他好文 时间:
2015-02-26 11:44:07
阅读次数:
131
1 private void LogWrite(string text)2 {3 FileStream fs = new FileStream(this.Server.MapPath("/log.txt"), FileMode.Append);4 ...
分类:
其他好文 时间:
2015-02-26 11:39:14
阅读次数:
149
本题只有四个字符,用常量数组存储它们#include #include char a[100][1500];int b[10];int main(){ int cnt, m, n, hamming= 0,maxum = 0; char c[10] ="ACGT"; scanf("%...
分类:
其他好文 时间:
2015-02-26 11:35:34
阅读次数:
146