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
#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
元组是几种数据类型的一种组合,比如http404Error这个变量,它的实际类型是(Int,String)当然这个类型可以不显示写出来,系统可以自动推断访问元组中的某一个元素有不同的方法,出去上面同时获取元组中的所有元素,也可以按如下方式获取可以给元组里面的元素起名字,方便以后读取元组在函数传值的时...
分类:
编程语言 时间:
2015-04-13 18:04:27
阅读次数:
115
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
转自http://developer.51cto.com/art/201503/468905.htm本文主要来介绍一下Java中的不可变对象,以及Java中String类的不可变性,那么为什么Java的String类是不可变对象?让我们一起来分析一下。答案一:最流行的Java面试题之一就是:什么是不...
分类:
编程语言 时间:
2015-04-13 18:02:13
阅读次数:
181
1、String和StringBuffer 1.1 StringBuffer的使用方法和String几乎一样 1.2、本质区别是String在连接、更改等操作时效率很低,而StringBuffer在更改操作时效率高。...
分类:
编程语言 时间:
2015-04-13 16:53:31
阅读次数:
175
一:标准库类型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
有一个参数范围的字符串是(0<p<10 or 0<=p<10 or 0<p<=10 or 0<=p<=10)的组合,传入一个参数,看参数是否在这个参数范围的字符串中。看各位大大有没有更好的方法。小弟的实现感觉很粗糙。...
分类:
编程语言 时间:
2015-04-13 16:50:22
阅读次数:
112
题目: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