先创建一个person类并定义name和sex属性,当person的name或sex属性发生变化时会执行一个action/**
* KVO --- Key Value Observe(键值观察者) * KVO 是一种设计模式,属于观察者设计模式 * 观察者设计模式涉及到...
分类:
移动开发 时间:
2014-05-09 16:15:37
阅读次数:
424
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-05-09 13:13:02
阅读次数:
283
A Funny GameTime Limit:1000MSMemory
Limit:65536KTotal Submissions:3861Accepted:2311DescriptionAlice and Bob decide
to play a funny game. At the beginn...
分类:
其他好文 时间:
2014-05-09 12:53:42
阅读次数:
265
@interface Person : NSObject@property (nonatomic,
copy) NSString *name;@end @interface Student :
Person@end1.Student类无法使用_name来访问Person中属性name,因为当使用@p...
分类:
其他好文 时间:
2014-05-09 08:20:33
阅读次数:
268
《Windows 7 ALL-IN-ONE for dummies》作者:Woody
Leonhard主攻方向:windows +
office管理网站http://www.askwoody.com/http://windowssecrets.com/著作:Windows 8.1
All-in-On...
分类:
Windows程序 时间:
2014-05-09 07:50:10
阅读次数:
1269
java中的匿名内部类总结匿名内部类也就是没有名字的内部类正因为没有名字,所以匿名内部类只能使用一次,它通常用来简化代码编写但使用匿名内部类还有个前提条件:必须继承一个父类或实现一个接口实例1:不使用匿名内部类来实现抽象方法abstract
class Person{ public abstract...
分类:
编程语言 时间:
2014-05-09 07:28:38
阅读次数:
322
arch/arm/kernel/process.c实现pm_power_off=关机函数参考board-omap3touchbook.c文件中pm_power_off=omap3_touchbook_poweroff;staticvoidomap3_touchbook_poweroff(void)
{
intpwr_off=TB_KILL_POWER_GPIO;
if(gpio_request_one(pwr_off,GPIOF_OUT_INIT_LOW,"DVIreset")<0..
分类:
系统相关 时间:
2014-05-09 07:03:00
阅读次数:
470
题目如下:
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the pile.
What a wonderful v...
分类:
其他好文 时间:
2014-05-09 06:20:44
阅读次数:
396
import java.lang.reflect.Field;
public class ReflectClass3 {
/**
* @param args
*/
public static void main(String[] args) {
Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:
编程语言 时间:
2014-05-09 06:18:19
阅读次数:
580
The ? 1 ? 2 ? ... ? n = k problem
The problem
Given the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k
? 1 ? 2 ? ... ? n =...
分类:
其他好文 时间:
2014-05-09 06:10:40
阅读次数:
285