码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android 常见工具类封装
1,MD5工具类:public class MD5Util { public final static String MD5(String s) { char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8',...
分类:移动开发   时间:2015-04-13 18:09:29    阅读次数:176
htmlcxx取指定字段实例
#include #include #include #include #include #include #include using namespace std;using namespace htmlcxx;int main(){ std::string strHtml = "dddddd ....
分类:Web程序   时间:2015-04-13 18:08:14    阅读次数:172
字符串加空格
#include "stdafx.h"#include #include #include #define N 100void Insert(char s[]);int main(){char str[N];printf_s("input a string:");gets_s(str);Insert...
分类:其他好文   时间:2015-04-13 18:05:52    阅读次数:102
Swift 元组
元组是几种数据类型的一种组合,比如http404Error这个变量,它的实际类型是(Int,String)当然这个类型可以不显示写出来,系统可以自动推断访问元组中的某一个元素有不同的方法,出去上面同时获取元组中的所有元素,也可以按如下方式获取可以给元组里面的元素起名字,方便以后读取元组在函数传值的时...
分类:编程语言   时间:2015-04-13 18:04:27    阅读次数:115
Android Http请求
Android HTTP请求封装代码/** * This class is the Utils of other classes. */public class HttpUtil { /** 变量/常量说明 */ private static final String TAG ...
分类:移动开发   时间:2015-04-13 18:02:51    阅读次数:243
为什么Java字符串是不可变对象?
转自http://developer.51cto.com/art/201503/468905.htm本文主要来介绍一下Java中的不可变对象,以及Java中String类的不可变性,那么为什么Java的String类是不可变对象?让我们一起来分析一下。答案一:最流行的Java面试题之一就是:什么是不...
分类:编程语言   时间:2015-04-13 18:02:13    阅读次数:181
java基础_13
1、String和StringBuffer 1.1 StringBuffer的使用方法和String几乎一样 1.2、本质区别是String在连接、更改等操作时效率很低,而StringBuffer在更改操作时效率高。...
分类:编程语言   时间:2015-04-13 16:53:31    阅读次数:175
C++标准库string
一:标准库类型string ①使用string要包含头文件 #inludde using std:string; ②sting 对象的初始化 string s1; //初始化一个空串 string s2(s1); //吧s1赋值给s2(也就是拷贝初始化) string s2 = s1; string s3("value");//(直接初始化) string s3 = "value"...
分类:编程语言   时间:2015-04-13 16:50:48    阅读次数:170
在JAVA中 解析String,形如(0<p<10 or 0<=p<10 or 0<p<=10 or 0<=p<=10)的字符串,看所传入的参数是否在表达式内
有一个参数范围的字符串是(0<p<10 or 0<=p<10 or 0<p<=10 or 0<=p<=10)的组合,传入一个参数,看参数是否在这个参数范围的字符串中。看各位大大有没有更好的方法。小弟的实现感觉很粗糙。...
分类:编程语言   时间:2015-04-13 16:50:22    阅读次数:112
【栈】Longest Valid Parentheses
题目:leetcode Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the l...
分类:其他好文   时间:2015-04-13 16:44:58    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!