码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
【Minimum Window】cpp
题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECOD...
分类:Windows程序   时间:2015-06-08 17:03:09    阅读次数:187
计算百度关键词出现密度
/// /// 获取百度关键词出现的密度 /// /// 标题、关键词 /// 如:10 (满为100) public static int GetBaiDuKeywordDensity(string keyW...
分类:其他好文   时间:2015-06-08 17:03:02    阅读次数:112
C#:STRING.FORMAT数字格式化输出
1.各种常用数字格式化货币转换 C 或 c(默认小数点后2位。C3后面跟的数字就代表小数后几位) string.Format("{0:C}",a)a.ToString("C")//$2.50 string.Format("{0:C3}",a)a.ToString("C3")//$2.500转换为十进...
分类:Windows程序   时间:2015-06-08 16:54:25    阅读次数:128
java的不可变类
1、Integerpublic static void main(String[]args) { Integer i=new Integer(1); System.out.println(i.intValue()); i=2; Syst...
分类:编程语言   时间:2015-06-08 16:49:55    阅读次数:132
DataSet,DataTable,XML格式互转
//// /// 将DataTable对象转换成XML字符串 /// /// DataTable对象 /// XML字符串 public static string CDataToXml(DataTable d...
分类:其他好文   时间:2015-06-08 16:47:42    阅读次数:112
Java_获取当前月最后一天
List ms = DateUtils.getMonths(7,"yyyyMM"); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); for (String s : ms) { Ca...
分类:编程语言   时间:2015-06-08 16:43:30    阅读次数:108
jsp想js,action传值
1、struts2 action如何向JSP的JS函数传值action中定义变量public class TestAction extends ActionSupport implements ServletRequestAware { private String state = "test";}...
分类:Web程序   时间:2015-06-08 16:38:33    阅读次数:158
String,StringBuffer与StringBuilder差异??
String 字符串常量StringBuffer 字符串变量(线程安全)StringBuilder 字符串变量(非线程安全)简要地, String 类型和 StringBuffer 类型的主要性能差别事实上在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候事实上都等...
分类:其他好文   时间:2015-06-08 16:36:07    阅读次数:101
[转载]Oracle批量执行
FROM: http://www.cnblogs.com/wangyayun/p/4514411.html//批量添加20000条数据用时8秒。try { String url = "jdbc:oracle:thin:@IP:1521:orcl"; // orcl为数据库的SID Strin...
分类:数据库   时间:2015-06-08 16:36:04    阅读次数:160
POJ1226:Substrings(后缀数组)
Description You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given ...
分类:编程语言   时间:2015-06-08 15:03:25    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!