EventListener是根据事件来执行一定的动作,前面讲的调度Scheduler根据时间来执行动作我们先从Event类开始。打开CCEvent.h文件/** * Base class of all kinds of events. */class Event : public Ref{pub.....
分类:
其他好文 时间:
2014-11-19 18:26:02
阅读次数:
262
$$\bex \frac{\tan x}{x}\nearrow. \eex$$ Ref. [Proof Without Words: Monotonicity of $\tan x/x$ on $(0,\pi/2)$, The College Mathematics Journal].
分类:
其他好文 时间:
2014-11-19 12:27:16
阅读次数:
180
Where Do You Want Me?Click Anywhere On The Page To Direct Me css:代码: html { cursor: pointe...
分类:
移动开发 时间:
2014-11-19 12:26:08
阅读次数:
143
$$\bex \sqrt{x^2+x+1}+ \sqrt{y^2+y+1} +\sqrt{x^2-x+1}+ \sqrt{y^2-y+1}\geq 2(x+y). \eex$$ Ref. [Proof Without Words: An Algebraic Inequality, The Colle...
分类:
其他好文 时间:
2014-11-19 12:20:04
阅读次数:
126
$$\bex \sin(x+y)=\sin x\cos y+\cos x\sin y. \eex$$ Ref. [Proof Without Words: Sine Sum Identity, The College Mathematics Journal].
分类:
其他好文 时间:
2014-11-19 12:19:11
阅读次数:
575
$$\bex \frac{\sin x}{x}\nearrow. \eex$$ Ref. [Proof Without Words: Monotonicity of $\sin x/x$ on $(0,\pi/2)$, The College Mathematics Journal]
分类:
其他好文 时间:
2014-11-19 12:12:31
阅读次数:
152
设 $\sed{a_k}_{k=1}^n$ 为等差数列, 则 $$\bex a_1+\cdots+a_n=\frac{n(a_1+a_n)}{2}. \eex$$ Ref. [Proof Without Words: Partial Sums of an Arithmetic Sequence, T...
分类:
其他好文 时间:
2014-11-19 12:04:39
阅读次数:
220
1、模式定义
迭代器模式(Iterator Pattern) :提供一种方法来访问聚合对象,而不用暴露这个对象的内部表示,其别名为游标(Cursor)。迭代器模式是一种对象行为型模式。
2、模式结构
迭代器模式包含如下角色:
Iterator: 抽象迭代器
ConcreteIterator: 具体迭代器
Aggregate: 抽象聚合类
ConcreteAggregate: 具体聚合...
分类:
其他好文 时间:
2014-11-19 11:27:51
阅读次数:
154
获取手机通讯录是Android最常用的小功能,今天自学到了,记下来,主要是通过系统自带的内容提供者提供的数据,我们使用内容接收者获取相应的数据到cursor中,然后获取对应data表中的字段,相关字段代表什么含义,只能自己去查了。
下面是手机通讯录列表的代码,仅供参考:
package com.andy.phonecontact;
import java.util.ArrayList;
im...
分类:
移动开发 时间:
2014-11-19 11:09:40
阅读次数:
246
ref:http://www.gartner.com/technology/reprints.do?id=1-1YAXV15&ct=140728&st=sb
分类:
其他好文 时间:
2014-11-19 10:46:02
阅读次数:
244