substring 方法用于提取字符串中介于两个指定下标之间的字符substring(start,end)开始和结束的位置,从零开始的索引参数 描述start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。stop 可选。一个非负的整数,比要提取的子...
分类:
Web程序 时间:
2014-10-21 19:18:17
阅读次数:
184
我主要用过的数据库为Oracle10g和SqlServer2008,通过实际运用和查阅资料整理如下:主题Oracle 10gSQLServer 2008存储过程格式Create Or Replace Procedure 存储过程名 (参数列表)ISBegin ---存储过程内容End 存储过程名;....
分类:
数据库 时间:
2014-10-21 17:03:00
阅读次数:
248
最近 Firefox 出现怪异情况:鼠标点击网页,在点击的位置显示光标,并一直闪烁,导致 Home End 等按键都无效。原来这是 Firefox 的 “特色功能”:Caret Browsing,激活这个功能以后,我们可以使用键盘来选择页面内容。这个功能的开关是F7,打开Firefox,按一下F7,...
分类:
Web程序 时间:
2014-10-21 10:08:08
阅读次数:
204
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-10-21 03:34:24
阅读次数:
197
var R: TRect;begin//Form1.Canvas.TextOut(20,20, '说明'); R:=Rect(20, 20, 120, 70); DrawText(Canvas.Handle, '说明', -1, R, DT_END_ELLIPSIS);end;//在...
题目:最大子序列求和#include using namespace std;const int max = 100000 + 10;int tt;void OutAns(int c,int ans,int beg,int end){ printf("Case %d:\n",c); printf("...
分类:
其他好文 时间:
2014-10-21 00:58:54
阅读次数:
197
直接上代码示例1:@interface TBViewController()//队列@property(nonatomic,strong)NSOperationQueue *queue;@end//队列的暂停和继续(在storyboard中拖两个按钮,分别为暂停、继续,连线)//暂停-(IBActi...
分类:
移动开发 时间:
2014-10-21 00:48:51
阅读次数:
229
Python-time计算程序运行时间import timestart = time.clock()time.sleep(5)end = time.clock()runtime = end - start获得当前时间戳import timetime.time()import timetime.cti...
分类:
编程语言 时间:
2014-10-20 23:01:12
阅读次数:
224
begin #可能发生异常的地方rescue #如何处理异常endrescue,哈哈,太有爱的一个单词了。。。begin #可能发生异常的地方rescue => exception #如何处理异常end这样一来,exception就可以用来存放异常对象了。$!:用来存放最后一...
分类:
其他好文 时间:
2014-10-20 14:56:08
阅读次数:
171
创建公共类:@interface CustomClass : NSObject- (void) fun1;@end@implementation CustomClass-(void)fun1{ NSLog(@"fun1");}@end@interface TestClass : NSObject@....
分类:
移动开发 时间:
2014-10-20 13:05:57
阅读次数:
254