码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
C++中的容器
C++中的容器 容器与容器适配器 容器包括vector, deque, list, map, multimap, set, multiset。容器适配器包括基于deque的stack和queue,基于vector的priority_queue。string也实现了stl的接口。 因为编写C++程序时经常需要查找容器的函数接口,故作此总结。C++新引入的容器与函数未引入。主要参考自:S...
分类:编程语言   时间:2015-04-08 06:48:39    阅读次数:200
JAVA_递归
递归斐波那契数列 1 public class Fab { 2 3 public static void main(String[] args) { 4 System.out.println(fab(50)); 5 } 6 7 public sta...
分类:编程语言   时间:2015-04-08 06:27:01    阅读次数:118
jquery text(),html()方法的区别
首先,html属性中有两个方法,一个有参,一个无参 1. 无参html():取得第一个匹配元素的html内容。这个函数不能用于XML文档。但可以用于XHTML文档,返回的是一个String 例子: html页面代码:Hello jquery代码:$("div").html(); 结果:Hello 2...
分类:Web程序   时间:2015-04-08 06:26:40    阅读次数:127
poj1961--Period(KMP求一个串的重复子串)
PeriodTime Limit: 3000MSMemory Limit: 30000KTotal Submissions: 13949Accepted: 6601DescriptionFor each prefix of a given string S with N characters (ea...
分类:其他好文   时间:2015-04-08 01:05:57    阅读次数:123
把时间格式的数据转化为整数
/** * * @param string 时间 * @param height控件的高度 * @return */ //"9:00-20:45" private int[] prosessTime1(String string,int height) { string=string.trim(.....
分类:其他好文   时间:2015-04-08 00:40:32    阅读次数:163
poj 1008
#include#includeusing namespace std;string hname[19] = { "pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac...
分类:其他好文   时间:2015-04-08 00:39:06    阅读次数:136
LeetCode --- 87. Scramble String
题目链接:Scramble String Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": ...
分类:其他好文   时间:2015-04-07 23:33:46    阅读次数:556
java基础4:String与StringBuffer及基本数据类型包装类
关于Java基础的文章,我觉得写得还可以,以前发在了我其它的博客了,肯定是原创,现在再分享给大家出来。 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------     java中一些基础...
分类:编程语言   时间:2015-04-07 23:27:59    阅读次数:214
常用的Java基本代码汇总
1.字符串和整型的相互转换 String a= String.valueOf(2); int i = Integer.parseInt(a);2. 向文件末尾添加内容 BufferedWriter out=null; try { out=new ...
分类:编程语言   时间:2015-04-07 23:25:45    阅读次数:230
类型转换之string变int
int.parse()函数是将字符串类型转换成int类型。 使用int.parse()不当,可能会抛出异常,分为以下三种:System.ArgumentNullException,即被转换的字符串的内容为Null;System.FormatException,字符串的内容不是数字;System.O....
分类:其他好文   时间:2015-04-07 23:18:15    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!