码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
sqlite 截取字符串函数substr
函数:substr(string string,num start,num length) 用法: string为字符串; start为起始位置;字符串的第一个字符的位置为1,不是从0开始计算 length为长度。 ? 例子: 假设表table1 mark ? 1000 1000?? ?...
分类:数据库   时间:2015-02-06 13:25:06    阅读次数:551
《Java程序员面试宝典》5.2.3——中间缓存变量机制
看到第三版中5.2的例题4,一开始只是简单地接受中间缓存变量的机制,例题如下:   public class Test {     public static void main(String[] args) {       int j = 0;       for (int i = 0; i < 100; i++)...
分类:编程语言   时间:2015-02-06 13:18:21    阅读次数:156
导出到excel表格
/** * @param sql 查询语句 * @param contentTitle excel表格标题名称 * @param filepath 生成excel表格文件的路径 * @param filename excel表格的名称 * @return 生成excel表格文件的路径 */ public String ToExcel(String sql,String cont...
分类:其他好文   时间:2015-02-06 13:18:03    阅读次数:121
C string类c_str() 详解
C string类c_str() 详解c_str() 返回以最后一个指向null结束。#include using namespace std; int main(int argc, char *argv[]) { const char *ch; string s = "abcdef"; ch = s.c_str(); cout<<ch...
分类:其他好文   时间:2015-02-06 13:17:21    阅读次数:183
安卓面试题 转自:http://www.apkbus.com/android-117746-1-1.html
1、方法重载与覆盖的区别?( Overload与Override的区别)答: 方法的重载属于编译时多态,方法名相同参数列表不同,返回值必须相同或都没有返回值类型。方法的覆盖属于运行时多态,子类覆盖父类的方法,子类指向父类引用,在调用方法的时候用父类的引用调用。2、String 和StringBuff...
分类:移动开发   时间:2015-02-06 13:08:51    阅读次数:223
[LeetCode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.思路: 很简单,其他字符串和第一个字符串比较,一个一个字符比较,反正最长不会超过第一个字符串的长度。class Solution...
分类:其他好文   时间:2015-02-06 13:06:07    阅读次数:121
PHP base62编码解码实现
1 <?php 2 /** 3 * @desc base62编码解码实现 4 * @param String $data 5 * @author Space 6 * @date 2014/8/6 7 **/ 8 9 function base62_encode($data...
分类:Web程序   时间:2015-02-06 13:05:36    阅读次数:471
HttpWebRequest 抓取页面异常处理办法
抓取页面异常处理办法 public static string GetHtmlTest(string URI) { string fullhtml = null; while (true) { ...
分类:Web程序   时间:2015-02-06 13:04:58    阅读次数:189
ruby : nil?, empty? and blank?的选择
article = nilarticle.nil? # => trueempty? checks if an element - like a string or an array f.e. - is empty:# Array[].empty? #=> true# String"".empt...
分类:其他好文   时间:2015-02-06 12:58:01    阅读次数:82
js string操作总结
var str='abcdefghijkl';console.log(str.charAt(2)) //根据字符串索引值找对应的字符串 cconsole.log(str.indexOf('b')) //根据字符串从前往后找对应的索引值 1 ,还有个可选参数(索引值),表示从第几位开始找 con...
分类:Web程序   时间:2015-02-06 12:57:15    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!