Implement strStr() 本题收获: 1.考虑多种边界条件。 2.haystack.size()和 int n = haystack.size()的区别(现在还不知道) 题目: Implement strStr(). Returns the index of the first occu ...
分类:
其他好文 时间:
2016-06-18 19:54:17
阅读次数:
167
原题如下: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 简单字符串翻转,直接上代码。 如何实现原地翻 ...
分类:
其他好文 时间:
2016-06-18 18:28:34
阅读次数:
143
///<summary>///处理水印图片的水印///</summary>///<paramname="path">带有水印的图片路径</param>///<returns>返回处理好水印的图片</returns>privateImageOperationPhoto(stringpath){Imagep_w_picpath=null;XMLCollectPhotoSetxMLColl..
isKindOfClass: Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits fro ...
分类:
其他好文 时间:
2016-06-16 17:58:29
阅读次数:
137
研究了一下HttpURLConnection的源码:
在使用的时候都是通过URL.openConnection()来获取HttpURLConnection对象,然后调用其connect方法进行链接,所以先从URL.penConnection()入手:
/**
* Returns a new connection to the resource referred to by thi...
分类:
移动开发 时间:
2016-06-16 14:45:24
阅读次数:
541
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50768550
Write a function that takes a string as input and returns the string reversed.
Example:
Given s = “hello”, return “...
分类:
其他好文 时间:
2016-06-16 14:39:53
阅读次数:
180
/// <summary>/// 递归文件夹 删除文件夹下面的所有文件及目录/// </summary>/// <returns></returns>public ContentResult RecursionFolder(){ string path = Server.MapPath("/Cont ...
分类:
其他好文 时间:
2016-06-16 13:01:26
阅读次数:
127
Wax Lua 使用方法 说一下 Wax 的特点,它支持你在脚本里使用任何 OC 的类,同样也支持你创建一个类。 使用一个类时你会这样使用: 1 2 NSString -- Returns the NSString class UIView -- Returns the UIView class 这 ...
分类:
移动开发 时间:
2016-06-15 18:57:10
阅读次数:
205
表结构: CREATE FUNCTION f_splitSTR( @s varchar(8000), --待分拆的字符串 @split varchar(10) --数据分隔符 )RETURNS @re TABLE(col varchar(100)) AS BEGIN --创建分拆处理的辅助表(用户定 ...
分类:
数据库 时间:
2016-06-13 06:33:37
阅读次数:
284
/** 初始化一个mapView 需导入 #import <MapKit/MapKit.h> - returns: 返回一个mapView对象 */ mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0,WIDTH, HEIGHT-20 ...
分类:
移动开发 时间:
2016-06-13 00:54:28
阅读次数:
192