C#代码如下:void Main(){ string errorMessage; ValidateXML(@"C:\Tarena\Backup\数据库\xml\book.xml",@"C:\Tarena\Backup\数据库\xml\book.xsd",out errorMessage)...
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
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
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作用:简化用户登陆(记住密码),购物车,浏览记录等等 jsp中创建与使用cookie 创建Cookie对象 Cookie newCookie=new Cookie(String key,Object value); 写入Cookie对象 response.addCookie(newCoo...
分类:
其他好文 时间:
2015-01-29 15:52:16
阅读次数:
235
1,字符串,String类。
-1,字符串是常量,他们的值在创建后不能更改。字符串缓冲区支持可变的字符串。
-2,String重载了Java中的+操作。
-3,String对象是不可变的,你可以给一个String对象加任意多的别名。因为String对象具有只读特性,所以指向他的任何引用都不能改变它的值。
2,String类的成员变量
-1,valu...
分类:
其他好文 时间:
2015-01-29 14:41:58
阅读次数:
139
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函数对某个字符串进行判断,判断其是否含有指定的字符。其语法为:Instr(string, substring, position, occurrence)其中string:代表源字符串...
分类:
数据库 时间:
2015-01-29 14:12:25
阅读次数:
223
原题地址动态规划题,注意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