码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java使用Cipher进行签名和验签
public static void main(String[] args) { try { String plainText = "duwenlei"; KeyPairGenerator keyPairGenerator = KeyPair...
分类:编程语言   时间:2015-02-26 14:47:30    阅读次数:245
c#输出json,其中包含子json (可以含 无限级 子json)的方法思路
首页 给出 DataTable 转Json 的方法: 1 public static string TableToJson(DataTable dt) 2 { 3 List> list = new List>(); 4 forea...
分类:Windows程序   时间:2015-02-26 13:13:28    阅读次数:274
Delphi执行DOS命令显示到文本框
Delphi执行DOS命令显示到文本框(TMemo)2007-11-24 22:03procedure CmdExecAndView(FileName: string; memo: TMemo);procedure _AddInfo(mmInfo:TMemo; S: string; var line...
分类:Windows程序   时间:2015-02-26 13:11:04    阅读次数:228
通用底层方法类,向每次新增数据表都添加一套底层说不
/// /// 底层及数据库操作通用类 /// public class CmdMethods { /// /// 参数标识符 /// public static string preParameter = "@...
分类:其他好文   时间:2015-02-26 13:09:56    阅读次数:196
RtlInitUnicodeString
代码1:WCHAR enumeratorName[64] = {0}; UNICODE_STRING unicodeEnumName; RtlInitUnicodeString(&unicodeEnumName, enumeratorName); unicodeEnumName是指向enume...
分类:其他好文   时间:2015-02-26 13:06:31    阅读次数:122
java安全令牌生成器
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
c# 文件读取
using System;using System.IO;class FileTest { public static void Main() { StreamReader srd;string path = @"c:\temp\MyTest.txt"; ...
分类:Windows程序   时间:2015-02-26 13:01:33    阅读次数:139
BroadcastReceive广播接收器:
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
Uva 1368-DNA Consensus String
本题只有四个字符,用常量数组存储它们#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!