判断是否为中文 public string IsChina(string CString) { string ResultValue = string.Empty; for (int i = 0; i < CString.Length; i++) { if (Convert.ToInt32(Conv...
分类:
其他好文 时间:
2014-11-27 12:01:04
阅读次数:
110
PHP的isset()函数 一般用来检测变量是否设置 格式:bool isset ( mixed var [, mixed var [, ...]] ) 功能:检测变量是否设置 返回值: 若变量不存在则返回 FALSE 若变量存在且其值为NULL,也返回 FALSE 若变量存在且值不为NULL,则返...
分类:
Web程序 时间:
2014-11-27 00:15:37
阅读次数:
317
Description
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the third
...
分类:
其他好文 时间:
2014-11-26 22:47:13
阅读次数:
357
Difficulty:HardTopics:gameAtic-tac-toeboard is represented by a two dimensional vector. X is represented by :x, O is represented by :o, and empty is r...
分类:
其他好文 时间:
2014-11-26 20:50:11
阅读次数:
173
1, 'b'=>0, 'c'=>NULL);echo'a test by empty: ', empty($a['a']) ? 'not exist': 'exist', PHP_EOL;echo'a test by isset: ', isset($a['a']) ? 'exist': 'not ...
分类:
编程语言 时间:
2014-11-26 13:50:02
阅读次数:
285
wgethttp://down.wdlinux.cn/in/php_up53.shsh php_up53.sh看到”phpupdate is OK”提示表示,顺利完成
分类:
Web程序 时间:
2014-11-26 11:12:47
阅读次数:
209
这个题目很简单,给一个字符串,然后返回最后一个单词的长度就行。题目如下: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last...
分类:
其他好文 时间:
2014-11-26 01:07:58
阅读次数:
218
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:
其他好文 时间:
2014-11-25 23:02:09
阅读次数:
229
/*
*Author : DavidLin
*Date : 2014-11-22pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver : 000.000.001
*history :...
分类:
系统相关 时间:
2014-11-24 20:54:08
阅读次数:
237
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-11-24 19:21:31
阅读次数:
162