/** * * 加密参数 * @author tarylei * @version
2014年3月31日 17:57:14 * @param string $param * @return string $_...
分类:
其他好文 时间:
2014-05-23 06:21:42
阅读次数:
265
1. 截取GB2312中文字符串 0xa0) {$tmpstr .= substr($str, $i,
2);$i++;} else$tmpstr .= substr($str, $i, 1);}return $tmpstr;}?>2.
截取utf8编码的多字节字符串3. UTF-8、GB2312都...
分类:
Web程序 时间:
2014-05-23 05:44:36
阅读次数:
358
//冒泡排序 从小到大对一组数排序function mp($array){ $count =
count($array); if ($count $i; $k--) { if($array[$k] "; } return $...
分类:
Web程序 时间:
2014-05-23 05:39:26
阅读次数:
284
hdu1021int main(n){ for(;~scanf("%d",&n);)
if(n-2)%4==0) puts("yes"); else puts("no"); return 0;}View Codenefu115 方法跟上...
分类:
其他好文 时间:
2014-05-23 05:13:13
阅读次数:
236
当线程的run方法执行方法体中的最后一条语句后,并由执行return语句返回时,或者出现了方法中没有捕获的异常时,线程将终止。
有一种可以强制线程终止的方法:interrupt可以用来请求终止线程。当对一个线程调用interrupt方法时,线程的中断状态将被置位,每一个线程都具有boolean...
分类:
编程语言 时间:
2014-05-23 04:17:59
阅读次数:
350
今天写了个java的小程序在运行的时候抛出下面的异常:java.lang.NumberFormatException:
For input string: "" 。定位到源程序中出错的地方: String[] cols = key.toString().split(" ");
return...
分类:
编程语言 时间:
2014-05-23 03:50:00
阅读次数:
325
private static long CalculateFolderSize(string
FolderName){ return FolderName.Length;} public delegate long
CalculateFolderSizeDelegate(string...
分类:
其他好文 时间:
2014-05-23 03:35:27
阅读次数:
235
Given an arraySofnintegers, find three integers
inSsuch that the sum is closest to a given number, target. Return the sum of the
three integers. You m...
分类:
其他好文 时间:
2014-05-23 03:21:10
阅读次数:
287
Given an input string, reverse the string word
by word.For example,Given s = "the sky is blue",return "blue is sky the". 1
Class Solution{ 2 public: ....
分类:
其他好文 时间:
2014-05-23 02:59:21
阅读次数:
260
Reverse digits of an integer.Example1:x = 123,
return 321Example2:x = -123, return -321 1 class Solution { 2 public: 3 int
reverse(int x) { 4 ...
分类:
其他好文 时间:
2014-05-22 16:26:23
阅读次数:
165