1、初始化+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo;+ (N...
分类:
移动开发 时间:
2014-10-25 17:12:08
阅读次数:
245
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
Each number in C may only be used once in the combina...
分类:
其他好文 时间:
2014-10-25 14:34:02
阅读次数:
163
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited numb...
分类:
其他好文 时间:
2014-10-25 11:56:08
阅读次数:
206
命令模式这个设计模式将对象封装成了一个请求获取操作,这个封装请求比一个原始的请求更加的灵活,且可以在对象之间传递,稍后存储,动态修改获取放到一个队
列之中。苹果公司是用Target-action机制和Invocation实现的,你可以在苹果的官方文档中去知道更多的关于Target-
Actio..
分类:
其他好文 时间:
2014-10-25 02:05:43
阅读次数:
221
二分查找#include<stdio.h>
intbsearch1(constinta[],intlen,inttarget)
{
intleft,right,middle;
if(len<=0)return-1;
left=0;
right=len-1;
while(left<right){
middle=(left+right)/2;
if(target<=a[middle]){
right=middle;
}else{
left=..
分类:
其他好文 时间:
2014-10-24 19:09:03
阅读次数:
187
_blank
浏览器总在一个新打开、未命名的窗口中载入目标文档。
_self
这个目标的值对所有没有指定目标的 标签是默认目标,它使得目标文档载入并显示在相同的框架或者窗口中作为源文档。这个目标是多余且不必要的,除非和文档标题 标签中的 target 属性一起使用。
_parent
这个目标使得文档载入父窗口或者包含来超链接引用的框架的框架集。如果这个引用是在...
分类:
其他好文 时间:
2014-10-24 19:01:50
阅读次数:
203
json串格式{
"10.10.11.1": {
"target_1": "34.2",
"target_3": "70.83",
"target_2": "50.51",
"target_5": "110.68",
"c_event": "event",
"target_4": "90.79",...
分类:
Web程序 时间:
2014-10-24 18:55:53
阅读次数:
172
form表单的target,当将iframe设置为隐藏时,可以实现当前页表单提交而不进行跳转刷新。代码如下,首页在页面里准备一个form表单和一个iframe。Java代码 ..........................................提交到action后,action返回一串...
分类:
其他好文 时间:
2014-10-24 18:49:51
阅读次数:
153
部分参考http://www.cnblogs.com/ios8/p/ios-version-com.html
下面举个简单的例子来说明在iOS7.0和iOS6.1(以及更低版本)之间的适配问题(用的是xcode5.0,里边有6.1和7.0两个版本的sdk)
新建一个工程,默认的development target,base sdk以及模拟器的版本都是7.0,在AppDelegate中的...
分类:
移动开发 时间:
2014-10-24 14:45:21
阅读次数:
183
Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity ...
分类:
其他好文 时间:
2014-10-24 14:16:18
阅读次数:
238