码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
记录类型的定义和应用
1.记录类型的定义type info = record name :string; age :integer; addr :string;end;2.记录类型应用Code highlighting produced by Actipro CodeHighlighter (freeware)http....
分类:其他好文   时间:2014-12-16 22:13:54    阅读次数:187
Enumeration遍历http请求参数的一个例子
Enumeration paraNames=request.getParameterNames();for(Enumeration e=paraNames;e.hasMoreElements();){ String thisName=e.nextElement().toString()...
分类:编程语言   时间:2014-12-16 22:13:33    阅读次数:143
php 连接redis 数据库单利类
<?php class RedisConnect { /** * Redis的ip * * @var string */ const REDISHOSTNAME = "127.0.0.1"; /** * Redis的port * * @var int */ const RED...
分类:数据库   时间:2014-12-16 21:02:47    阅读次数:206
.NET参数化Oracle查询参数
最近在做数据库移植工作(SqlServer 2008 -> Oracle 11g),遇到一些不兼容的问题,以下是一个参数化方面的区别,资料来自其他网友,在此整理了一下。 public static String ConnectionString = "Data Source=orcl;User ID...
分类:数据库   时间:2014-12-16 21:00:43    阅读次数:630
swift 字符串包含
swift的String类没有contains这样类型的方法来直接判断字符串中是否包含另一段字符串,但是,可以变通的来实现。 直接上代码: if "这是一段字符串".componentsSeparatedByString("字符串").count > 0 { println("包含") } else { println("不包含") } 简单说一下: component...
分类:编程语言   时间:2014-12-16 21:00:22    阅读次数:192
【java解惑】长整数计算防止溢出
如下代码:publicclassExample003{ publicstaticvoidmain(String[]args){ finallongMICROS_PER_DAY=24*60*60*1000*1000; finallongMICROS_PER_DAY_L1=24*60*60*1000*1000L; finallongMILLIS_PER_DAY=24*60*60*1000; System.out.println("NOLPrint:"+MICROS_PER_DAY/M..
分类:编程语言   时间:2014-12-16 19:23:03    阅读次数:191
.net 获取AppDomain创建了多少
partial class HttpBrowser { public static string IsolateCall(PageContentHandler pHandler) { Contract.Requires(pHandler != ...
分类:移动开发   时间:2014-12-16 19:09:35    阅读次数:197
snappy性能测试之安装运行
项目地址:https://code.google.com/p/snappy/下载后,解压。$./configure$make建立一个简单的测试文件a.cpp:#include "snappy.h"#include #include int main() { std::string s = "d...
分类:移动开发   时间:2014-12-16 19:09:07    阅读次数:208
文件夹锁定(Source)
文件夹锁定(Source)private void Lock(string folderPath){ try { string adminUserName = Environment.UserName;// getting your adminUserName DirectorySecurity d...
分类:其他好文   时间:2014-12-16 19:03:34    阅读次数:133
C# 调用百度翻译Api
这是简单的界面。用的是wpf,winform也可以具体的操作类public partial class MainWindow : Window { string url = ""; public MainWindow() { In...
分类:Windows程序   时间:2014-12-16 18:47:03    阅读次数:653
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!