value.substring(0, 4)返回的是value的0,1,2,3组成的字符串
分类:
其他好文 时间:
2014-05-10 07:58:31
阅读次数:
220
Substring时间限制:1000 ms | 内存限制:65535 KB难度:1描述You
are given a string input. You are to find the longest substring of input such
that the reversal of the ...
分类:
其他好文 时间:
2014-05-10 06:20:56
阅读次数:
257
javascript版in_array函数,用于判断数组中是否存在特定值。判断一个字符串或者数字是否在数组内,很多程序语言都有这样一样专门的函数,比如PHP的in_array()。那么JS有木有呢,很遗憾,JS木有这样的函数,于是想到伟大的JQ是否封装了这个函数,找到了API,JQ的确封装了这个函数...
分类:
编程语言 时间:
2014-05-10 06:10:51
阅读次数:
360
guava String的CaseFormat用法。...
分类:
其他好文 时间:
2014-05-09 22:45:29
阅读次数:
377
===========================================================
define中的三个特殊符号:#,##,#@
===========================================================
#define Conn(x,y) x##y
#define ToChar(x...
分类:
其他好文 时间:
2014-05-09 22:17:19
阅读次数:
388
sed-e‘s/^\([a-zA-Z]\+\)\([a-zA-Z]\+\)\(.*\)/\2\1\3/g‘file意思如下:在文件每一行的开始,如果在第一个空格之前只含有英文字符,那么与空格之后的以英文字符开头截止到最后一个英文字符的字符串进行对换,例如FirstSecond1234....
变为SecondFirst1234....后面的数字为替代..
分类:
其他好文 时间:
2014-05-09 21:33:14
阅读次数:
226
phpize可以往php种追加新的模块
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script....
分类:
Web程序 时间:
2014-05-09 21:06:27
阅读次数:
375
find / –name sqlplus iostat –d 2 iostat和iowait详细解说
如果你想对硬盘做一个IO负荷的压力测试可以用如下命令 time dd if=/dev/zero bs=1M count=2048 of=direct_2G
此命令为在当前目录下新建一个2G的文件 我...
分类:
系统相关 时间:
2014-05-09 20:31:22
阅读次数:
547
学C++的时候,这几个输入函数弄的有点迷糊;这里做个小结,为了自己复习,也希望对后来者能有所帮助,如果有差错的地方还请各位多多指教(本文所有程序均通过VC
6.0运行)1、cin 2、cin.get() 3、cin.getline() 4、getline() 5、gets() 6、getchar()...
分类:
编程语言 时间:
2014-05-09 20:24:39
阅读次数:
357
BFS。 1 #include 2 #include 3 #include 4
#include 5 using namespace std; 6 7 #define INF 0x3fffffff 8 9 typedef struct
node_st {10 int x, y, ...
分类:
其他好文 时间:
2014-05-09 20:18:48
阅读次数:
339