/// /// 更新配置文件信息/// /// 配置文件字段名称/// 值private void
UpdateConfig(string name,string Xvalue){ XmlDocument doc = new XmlDocument();
doc.Load(Application.....
分类:
其他好文 时间:
2014-06-13 20:28:41
阅读次数:
343
string sqldatabase =
string.Format(dr["sql"].ToString(), drpat["PATIENT_ID"].ToString()); string
tablename = dr["SQL_NAME"].ToString(); DataT...
分类:
其他好文 时间:
2014-06-13 20:20:27
阅读次数:
239
NSRange的定义typedefstruct_NSRange{NSUIntegerlocation;NSUIntegerlength;}NSRange;NSRange是一个结构体,其中location是一个以0为开始的index,length是表示对象的长度。他们都是NSUInteger类型。而N...
分类:
其他好文 时间:
2014-06-13 19:45:38
阅读次数:
286
NSString *lastComponent = [cachePath
lastPathComponent]; NSString *pathLessFilename = [cachePath
stringByDeletingLastPathComponent]; NSString *o...
分类:
移动开发 时间:
2014-06-13 19:40:29
阅读次数:
309
1、infrom p in 信息where (new string[]
{"10","14"}).Contains(p.编码)select p2、not infrom p in 信息where !(new string[]
{"10","14"}).Contains(p.编码)select p
分类:
其他好文 时间:
2014-06-13 19:39:29
阅读次数:
251
该代码列出 Windows 下当前运行的所有进程import java.io.*;public
class ListProcess {public static void main(String[] args) throws
IOException{Runtime runtime = Runtime...
分类:
编程语言 时间:
2014-06-13 19:25:03
阅读次数:
300
getPropertiespublic static Properties
getProperties()确定当前的系统属性。首先,如果有安全管理器,则不带参数直接调用其 checkPropertiesAccess
方法。这可能导致一个安全性异常。将 getProperty(String) 方法使用...
分类:
编程语言 时间:
2014-06-13 19:20:56
阅读次数:
245
先跳过理论,JDK中已经实现了观察者模式的框架,我们先看下是如何使用的,接着看下JDK中是如何设计的,最后来自己实现观察者模式及其理论介绍1.如何用 1
public class Guanchazhe { 2 3 public static void main(String[] args)...
分类:
编程语言 时间:
2014-06-13 19:10:45
阅读次数:
260
NSString* string;// 结果字符串02NSString* string1,
string2;//已存在的字符串,需要将string1和string2连接起来0304//方法1.05string = [NSString
initWithFormat:@"%@,%@", string1,...
分类:
其他好文 时间:
2014-06-13 19:07:36
阅读次数:
211
NSString类中提供了这样三个方法用于获取子字符串:–substringFromIndex:–substringWithRange:–substringToIndex:它们该怎么使用呢?见下面代码即可知道。NSString*str
=@"12345";//NSString *subString0...
分类:
其他好文 时间:
2014-06-13 19:00:27
阅读次数:
268