1 KVO (key-valueObserving) 是提供对象属性被改变是的通知机制。KVO的实现实在Foundation中,很多基于 Foundation 的框架都依赖与它。如果只对某一个对象的值的改变感兴趣的话。就可以使用KVO消息传递。满足KVO的前提条件:1接受者(接受对象改变的通知的对....
分类:
移动开发 时间:
2014-07-18 17:39:57
阅读次数:
374
常见配置项'配置值''TMPL_L_DELIM'=>''}>',//修改右定界符(重点)'DB_PREFIX'=>'tp_',//设置数据库表前缀便于管理分类(重点)'DB_DSN'=>'mysql://root:@localhost:3306/thinkphp3',/*使用DSN配置链接数据库信息...
分类:
Web程序 时间:
2014-07-18 15:28:29
阅读次数:
2243
接口Map 一、Map功能 1.添加 put(K key, V value) putAll(Map); 2.删除 clear() remove(Object key); 返回对应的值 3.判断 containsKey(Object key) containsValue(Object value) i...
分类:
其他好文 时间:
2014-07-18 15:06:12
阅读次数:
223
The key of this problem is about details especially boundary conditions.class Solution {public: ListNode *deleteDuplicates(ListNode *head) { ...
分类:
其他好文 时间:
2014-07-18 14:36:54
阅读次数:
189
1.Map1.1 map是一种pair的容器,pair的种类是pair。map采用下标访问一个已存在的key, 会更新value,访问map中不存在的元素时,会增加一个新的键值对。map中的元素按照key进行从小到大排列。map的底层实现是采用二叉树,一般是使用红黑树。#include #inclu...
分类:
编程语言 时间:
2014-07-18 14:30:07
阅读次数:
350
========================安装sqlite=================官网下载安装包*.tar.gz格式./configure --prefix=/usr/server/sqlit 安装包目录makemake install测试安装成功 sqlite3 test.d...
分类:
数据库 时间:
2014-07-18 14:24:11
阅读次数:
308
asp从第几条开始读取数据asp跳过前几条读取数据
<%
setrs=server.CreateObject("adodb.recordset")
sql="selecttop15*fromjsyllh_xxnewswhereSMT_key=1andSMT_newssort=41orderbySMT_iddesc"
rs.opensql,conn,1,1
ifrs.eofthen
response.write"本类暂无新闻"
else
i=0
dowh..
分类:
Web程序 时间:
2014-07-18 13:14:31
阅读次数:
223
lamp环境搭建1、apahce安装(1)安装相关的依赖包[root@localhost~]#yum–yinstallgccmakeopenssl-develc++libxml2-devel(2).编译安装apahce[root@localhostsrc]#tar-zxfhttpd-2.2.25[root@localhostsrc]#cdhttpd-2.2.25[root@localhostsrc]#./configure--prefix=/usr/loca..
分类:
其他好文 时间:
2014-07-18 13:09:49
阅读次数:
283
Problem Description
The Czech Technical University is rather old — you already know that it celebrates 300 years of its existence in 2007. Some of the university buildings are old as well. And the ...
分类:
其他好文 时间:
2014-07-18 12:24:56
阅读次数:
217
1、检查freetype是否安装
rpm -qa | grep freetype
没有的话编译freetype
这里下载
./configure --prefix=/usr/local/freetype
make && make install 即可,没有花头
2、检查libjpeg是否安装
rpm -qa | grep libjpeg
没有的话编译libjpeg
...
分类:
系统相关 时间:
2014-07-18 11:10:56
阅读次数:
256