码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
【leetcode】Longest Substring Without Repeating Characters (middle)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-02-03 16:46:32    阅读次数:112
C#中使用反射获取结构体实例
原文:C#中使用反射获取结构体实例一般用反射获取类对象的实例比较简单,只要类有一个无参构造函数或没有显示声明带参的构造函数即可使用如下代码 static void Main(string[] args) { Type type = typeof(MyObject); object obj = typ...
分类:Windows程序   时间:2015-02-03 16:45:19    阅读次数:219
spring mvc databind 复杂对象
springmvc的controller可以进行对象的数据绑定。如下的代码可以直接将form传过来的id和name映射到参数里。//映射到id 和 name上@RequestMapping("hello")public void hello (String id,String name) { ......
分类:编程语言   时间:2015-02-03 16:43:13    阅读次数:623
C#.NET实现Word或Excel文件转为HTML文件
Word文件转html,返回相对路径 1 private string GetPathByDocToHTML(string strFile) 2 { 3 if (string.IsNullOrEmpty(strFile)) 4 { 5 ...
分类:Windows程序   时间:2015-02-03 16:42:54    阅读次数:250
Copy xml 文件
public static void copyFailFile(String bugID) throws Exception { File file = new File("."); //get XML file path String xmlFil...
分类:其他好文   时间:2015-02-03 16:35:02    阅读次数:131
Multiply Strings
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ...
分类:其他好文   时间:2015-02-03 16:31:41    阅读次数:125
Swift基础语法:String篇
首先我们回顾一下C、OC中字符串相关知识:C语言中,通常说字符串为一个普通的字符数组,如:charcharacters[12]="helloworld";而C语言中引用字符串通常和指针扯上关系,写法如:char*s="helloworld";这两种写法上,存在一个明显的区别在于characters中的字符存在于栈区,而s指..
分类:编程语言   时间:2015-02-03 15:20:16    阅读次数:278
利用Jsonarray拼接sql
functiongetjsontoWhereSql(constajsonarray:TJSONArray):string;vari:Integer;ajsonobject:TJSONObject;afieldname,afieldvalue:string;sqlwherestring:string;afieldoperator:string;beginsqlwherestring:=‘‘;fori:=0toajsonarray.Size-1dobeginajsonobject:=ajsonarray.Get(..
分类:数据库   时间:2015-02-03 15:16:38    阅读次数:345
Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa","...
分类:其他好文   时间:2015-02-03 15:09:45    阅读次数:96
C# 操作xml文件
/// /// 修改XML /// /// test public static void ChangeXml(string test) { string xmlPath = "config";//当前文件夹下的config XmlDocument xmlDoc = new XmlDocumen.....
分类:Windows程序   时间:2015-02-03 14:55:22    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!