//找出两个字符串中最长的相同子字符串public class Stringdemo { public static void main(String[] args) { String str1 = new String("eeabcde"); String...
分类:
其他好文 时间:
2015-02-02 07:05:20
阅读次数:
229
#include #include "string.h"#include "malloc.h"void Swap(int a,int b){ int temp; temp=a; a=b; b=temp;}int Get_Int(int a){ int i=1+a; ...
分类:
编程语言 时间:
2015-02-02 07:04:47
阅读次数:
243
修改XtraMessageBox的内容字体大小 public static DialogResult Show(UserLookAndFeel lookAndFeel, IWin32Window owner, string text, string caption, DialogResult[] b...
分类:
其他好文 时间:
2015-02-02 07:04:05
阅读次数:
1213
function trim() { var start, end; start = 0; end = this.length - 1; while(start = 0; end --) { str = str + this.charAt(end); } ...
分类:
编程语言 时间:
2015-02-02 01:53:35
阅读次数:
195
public static String outputThrowable(Throwable t) throws FileNotFoundException{ for (StackTraceElement ste:t.getStackTrace()) { ...
分类:
其他好文 时间:
2015-02-02 00:36:38
阅读次数:
163
/// /// 更改时间格式[HH:mm:ss]到[HHmmss] /// /// /// public static string TimeToJsonTime(string input) { ...
分类:
Web程序 时间:
2015-02-02 00:33:01
阅读次数:
268
<TextView
????????android:layout_width="wrap_content"
????????android:layout_height="wrap_content"
????????android:text="@string/hello_world"
????????android:id="@+i...
分类:
编程语言 时间:
2015-02-01 23:24:46
阅读次数:
367
1 public static void main(String[] args) { 2 3 Map map = new HashMap(); 4 map.put("1", "value1"); 5 map.put("2", "value2"); 6 map.put("3", "...
分类:
其他好文 时间:
2015-02-01 23:18:41
阅读次数:
233
Word文件转html,返回相对路径 1 private string GetPathByDocToHTML(string strFile) 2 { 3 if (string.IsNullOrEmpty(strFile)) 4 { 5 ...
示例:更改日期格式下面的代码示例使用Regex.Replace方法将mm/dd/yy格式的日期替换为dd-mm-yy格式的日期。static string MDYToDMY(string input) { return Regex.Replace(input, "\\b(?...
分类:
Web程序 时间:
2015-02-01 23:14:55
阅读次数:
175