码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
使用C#调用Schema文件验证XML文档
C#代码如下:void Main(){ string errorMessage; ValidateXML(@"C:\Tarena\Backup\数据库\xml\book.xml",@"C:\Tarena\Backup\数据库\xml\book.xsd",out errorMessage)...
分类:Windows程序   时间:2015-01-29 17:13:32    阅读次数:316
lua拆分字符串实现及lua源码查看
lua字符串拆分实现 --字符串分割 function splitStr(content, token) if not content or not token then return end local strArray = {} local i = 1 local contentLen = string.len(content) while true...
分类:其他好文   时间:2015-01-29 16:02:11    阅读次数:175
Integer to Roman
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. string intToRoman(int num) { int numarr[] = {1, 4, 5, 9, 10, 40, 50, 90, 100, 400,...
分类:其他好文   时间:2015-01-29 15:55:56    阅读次数:124
VBA 文件操作
Public Function getFiles(folderPath As String) As Variant Dim tempFileName As String Dim fileNames() As Variant '记录fileNames的总长度 Dim fileNameLe...
分类:编程语言   时间:2015-01-29 15:54:02    阅读次数:143
Cookie记住登陆账号和密码
Cookie作用:简化用户登陆(记住密码),购物车,浏览记录等等 jsp中创建与使用cookie 创建Cookie对象 Cookie newCookie=new Cookie(String key,Object value); 写入Cookie对象 response.addCookie(newCoo...
分类:其他好文   时间:2015-01-29 15:52:16    阅读次数:235
JDK源码-String
1,字符串,String类。     -1,字符串是常量,他们的值在创建后不能更改。字符串缓冲区支持可变的字符串。     -2,String重载了Java中的+操作。     -3,String对象是不可变的,你可以给一个String对象加任意多的别名。因为String对象具有只读特性,所以指向他的任何引用都不能改变它的值。 2,String类的成员变量     -1,valu...
分类:其他好文   时间:2015-01-29 14:41:58    阅读次数:139
Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without ...
分类:其他好文   时间:2015-01-29 14:41:06    阅读次数:91
数值转为财务大写
CREATE OR REPLACE FUNCTION money_to_chinese (money IN VARCHAR2) RETURN VARCHAR2IS c_money VARCHAR2 (12); m_string VARCHAR2 (60) := '分角圆拾佰仟万...
分类:其他好文   时间:2015-01-29 14:17:26    阅读次数:177
Oracle中Instr用法
在项目中用到了Oracle中Instr这个函数,顺便仔细的再次学习了一下这个知识。Oracle中,可以使用Instr函数对某个字符串进行判断,判断其是否含有指定的字符。其语法为:Instr(string, substring, position, occurrence)其中string:代表源字符串...
分类:数据库   时间:2015-01-29 14:12:25    阅读次数:223
Leetcode#91 Decode Ways
原题地址动态规划题,注意0导致的小陷阱。代码: 1 int numDecodings(string s) { 2 if (s.empty() || s[0] '9') return 0; 3 4 int sum = s[s.length() - 1...
分类:其他好文   时间:2015-01-29 14:00:55    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!