create or replace function refresh_product_usage() returns void as $$declare rec record; sub_rec record; init_pro_id integer; parent_product_id integ....
分类:
数据库 时间:
2014-10-30 09:20:25
阅读次数:
275
计算NSString的字符长度,用length方法Returns the number of Unicode characters in the receiver,既是英文字符和中文汉字都是一个字符长度,如@“abcde我的”长度为7,而此长度和微博的输入字数实际上是不符的,在微博中,它的长度为5(...
分类:
其他好文 时间:
2014-10-29 23:43:10
阅读次数:
282
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.思路:时间复杂度O(m*n),也就是BF(Brute...
分类:
其他好文 时间:
2014-10-29 14:37:50
阅读次数:
141
最近刚学了java图形界面编程,想独立写个记事本,过程当中想要为对话框中的按钮设置监听,但是查看了一下api也没找到相应的方法,只找到这个:
Returns:
an integer indicating the option selected by the user
showConfirmDialog这个方法只返回一个int值来标识用户选择了哪一个按钮。找了半天也没找到设置监听的方法。。...
分类:
其他好文 时间:
2014-10-29 00:28:33
阅读次数:
199
Let's have some fun with functions.Implement afibonaccifunction that returns a function (a closure) that returns successive fibonacci numbers.package ...
分类:
其他好文 时间:
2014-10-28 00:37:06
阅读次数:
129
/// <summary>
///
/// </summary>
/// <param name="dt"></param>
/// <param name="strWhere">筛选的条件</param>
/// <returns></returns>
public DataTab...
分类:
编程语言 时间:
2014-10-27 19:53:24
阅读次数:
278
获取中文首字母 create?function?f_GetPinYin(@str?varchar(500))?
returns?varchar(500)?
as??
begin?
???declare?@cyc?int,@length?int,@str1?varchar(100),@charcate?varbinary(20)?
???...
分类:
数据库 时间:
2014-10-27 17:50:54
阅读次数:
446
/// <summary>
/// 获取日期星期几
/// </summary>
/// <param name="addDate"></param>
/// <returns></returns>
private string GetWeek(DateTime addDate)
{...
分类:
其他好文 时间:
2014-10-27 14:29:57
阅读次数:
176
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.思路:KMP算法算是忘得一干二净,回头有时间看看...
分类:
其他好文 时间:
2014-10-27 10:43:49
阅读次数:
182
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.
输入两个字符串,如果第二个是第一个的字串返回该串在第一个字符串开始的的子串。
比如abcd bc
则返回bcd
...
分类:
其他好文 时间:
2014-10-27 09:24:04
阅读次数:
177