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 paraNames=request.getParameterNames();for(Enumeration e=paraNames;e.hasMoreElements();){ String thisName=e.nextElement().toString()...
分类:
编程语言 时间:
2014-12-16 22:13:33
阅读次数:
143
<?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
最近在做数据库移植工作(SqlServer 2008 -> Oracle 11g),遇到一些不兼容的问题,以下是一个参数化方面的区别,资料来自其他网友,在此整理了一下。 public static String ConnectionString = "Data Source=orcl;User ID...
分类:
数据库 时间:
2014-12-16 21:00:43
阅读次数:
630
swift的String类没有contains这样类型的方法来直接判断字符串中是否包含另一段字符串,但是,可以变通的来实现。
直接上代码:
if "这是一段字符串".componentsSeparatedByString("字符串").count > 0 {
println("包含")
} else {
println("不包含")
}
简单说一下:
component...
分类:
编程语言 时间:
2014-12-16 21:00:22
阅读次数:
192
如下代码: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
partial class HttpBrowser { public static string IsolateCall(PageContentHandler pHandler) { Contract.Requires(pHandler != ...
分类:
移动开发 时间:
2014-12-16 19:09:35
阅读次数:
197
项目地址: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)private void Lock(string folderPath){ try { string adminUserName = Environment.UserName;// getting your adminUserName DirectorySecurity d...
分类:
其他好文 时间:
2014-12-16 19:03:34
阅读次数:
133
这是简单的界面。用的是wpf,winform也可以具体的操作类public partial class MainWindow : Window { string url = ""; public MainWindow() { In...