MFCVisual Studio 2008CString 的 Format
中不能这样存在str.Format(_T("Cool(\%)")); 或者str.Format(_T("Cool(%)"));
即format非CString类型值时不能带%改:str = (_T("Cool(\%)"));
分类:
其他好文 时间:
2014-06-16 00:10:27
阅读次数:
234
/// /// 更新配置文件信息/// /// 配置文件字段名称/// 值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
预先为每个URL计算好PageRank值,并将计算结果保存到数据表中,该函数会在每次执行期间重新计算所有的pageRank值该函数最初将每个网页的PageRank值设为1,然后遍历每个URL,并针对每个外部回指链接,得到其pagerank值与链接的总数,并以粗体显示代码行给出的应用与每个外部链接的计...
分类:
编程语言 时间:
2014-06-13 19:06:38
阅读次数:
381