DescriptionFreddy Frog is sitting on a stone in
the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another
stone. He plans to visi...
分类:
其他好文 时间:
2014-05-26 21:55:01
阅读次数:
352
Write a function to find the longest common
prefix string amongst an array of strings.
要减少比较次数。在实现过程中我的想法是,2个2个比较,那么只要遍历一次数组就好。而且,在比较过程中,以较短的那个长度作为最大比...
分类:
其他好文 时间:
2014-05-26 21:29:43
阅读次数:
203
方法一安装cURLwgethttp://curl.haxx.se/download/curl-7.17.1.tar.gztar -zxf
curl-7.17.1.tar.gz./configure --prefix=/usr/local/curlmake & make
install方法二进入安装原...
分类:
Web程序 时间:
2014-05-26 21:25:29
阅读次数:
698
编号需要修改的代码1//// Prefix header//// The contents
of this file are implicitly included at the beginning of every source
file.//#import//服务器IP#define kXMPP...
分类:
移动开发 时间:
2014-05-26 14:51:52
阅读次数:
782
函数名称:加前缀函数—addprefix。函数功能:为“NAMES…”中的每个文件名称加入前缀“PREFIX”。參数“NAMES…”是空格切割的文件名称序列,将“SUFFIX”加入到此序列的每个文件名称之前。返回值:以单空格切割的加入了前缀“PREFIX”的文件名称序列。函数说明:演示样例:$(ad...
分类:
其他好文 时间:
2014-05-26 13:51:26
阅读次数:
233
1、 rsync是开源的项目,首先去官网上下载安装包。下载地址
http://rsync.samba.org/ftp/rsync/src/
这边我下载的是3.1.0.tar.gz
解压到/opt/rysnc310目录下,这是我个人习惯的解压目录。可以直接更改解压出来的目录名
2、 三板斧安装,这个不需要多说了
如安装其他地方,加prefix参数...
分类:
其他好文 时间:
2014-05-24 23:15:03
阅读次数:
395
Rescue
Problem Description
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M
Angel's friends want to save Angel. Their task is: a...
分类:
其他好文 时间:
2014-05-23 00:06:37
阅读次数:
482
Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down?
Input
Input starts with an integer T (≤ 11000), denot...
分类:
其他好文 时间:
2014-05-22 22:59:18
阅读次数:
354
最基本的宏定义用法
#define aaa bbb
表示用aaa替换bbb的内容.
宏作用范围
宏的作用范围是在当前文件内,
如果需要作用于其他类(如在类b调用类a已定义宏),那么需要在类b引入类a的头文件(a.h)。
如果需要作用于整个工程,可以定义一个类如Config.h,在该类定义好需要的宏,然后在工程的XXX_Prefix.pch文件 #import
"...
分类:
移动开发 时间:
2014-05-22 22:32:42
阅读次数:
425
/*Swimming时间限制:1000ms |
内存限制:65535KB难度:1描述Peipei likes swimming. Strange that he always swims from a
coner to the counter corner inthe way bellow(that...
分类:
其他好文 时间:
2014-05-22 14:14:27
阅读次数:
291