在Xcode6之前新建项目,系统会帮我们自动新建一个以工程名为名字的pch (precompile header)文件,在Supporting FIles文件下会看到一个以 -Prefix.pch结尾文件的文件,pch全称是“precompiled header”,也就是预编译头文件,该文件里存放的...
分类:
其他好文 时间:
2014-10-27 00:26:24
阅读次数:
182
ItcastWeibo-Prefix.pch//// Prefix header//// The contents of this file are implicitly included at the beginning of every source file.//#import #ifndef...
分类:
移动开发 时间:
2014-10-26 18:16:00
阅读次数:
287
最近使用ThinkPHP3.1进行一个项目的开发,由于该项目需要连接多台不同的数据库,所以使用如下配置方法: 1 '配置值' 4 //数据库配置 5 'DB_PREFIX' => '', 6 'DB_BLACK_FP' => array( 7 'db_type...
分类:
数据库 时间:
2014-10-26 16:51:55
阅读次数:
225
0、安装gcc:yum install gcc1、下载地址:http://php.net/downloads.php2、上传到/usr/local/src 并解压3、创建目标文件夹 mkdir /usr/local/php4、回到php解压目录:./configure --prefix=/usr/l...
分类:
Web程序 时间:
2014-10-26 11:38:27
阅读次数:
194
Write a function to find the longest common prefix string amongst an array of strings.题目言简意赅,貌似也不难,暴力法用一个char *数组存放strs里每个元素的起始地址,然后循环,同时把所有指针向前移动,如果有...
分类:
其他好文 时间:
2014-10-25 00:52:44
阅读次数:
265
字典树(Trie)是一种很特别的树状信息检索数据结构,如同其名,它的构成就像一本字典,可以让你快速的进行字符插入、字符串搜索等。字典树设计的核心思想是空间换时间,所以数据结构本身比较消耗空间。但它利用了字符串的共同前缀(Common Prefix)作为存储依据,以此来节省存储空间,并加速搜索时间。T...
分类:
其他好文 时间:
2014-10-24 23:38:01
阅读次数:
399
XCode6里, 新建工程默认是没有pch文件的,苹果取消pch文件这一点肯定有它的道理,刚开始很多人可能不适应,如果我们想使用pch文件,需要手动添加,添加步骤如下:(依旧直接上图) @ 取消的原因: Stackoverflow上有一个人对此的解释是这样的: I suspect because of modules, which remove the need f...
分类:
其他好文 时间:
2014-10-24 20:46:41
阅读次数:
459
tar zxvf ncurses-5.6.tar.gz 进入目录 cd ncurses-5.6 生成 makefile文件,再进一步编译 ./configure --prefix=/usr --with-shared --without-debug 编译,编译时间稍微长些,稍等make 编译好最后就...
分类:
其他好文 时间:
2014-10-24 16:22:01
阅读次数:
1459
OS:ubuntu14.04 WEB Server:nginx1.7.5 PHP-5.9.4 wget http://cn2.php.net/distributions/php-5.5.9.tar.gz tar zvxf php-5.5.9.tar.gz cd php-5.5.9 ./configure --prefix=/usr/local/php? --enable-fpm --wit...
分类:
Web程序 时间:
2014-10-23 10:51:05
阅读次数:
295
在后面使用和安装pip时说缺少zlib库,于是,先下载zlibzlib-1.2.8.tar.gztarxfzlib-1.2.8.tar.gzcdzlib-1.2.8./configure--prefix=/usr/localmake&&makeinstall得到/usr/local/include/zconf.h位置2.cd到Python-2.7.8./configure--prefix=/usr/local--with-libs=‘/usr/..
分类:
编程语言 时间:
2014-10-23 07:02:05
阅读次数:
229