Chapter 8 UITableView and UITableViewController1. The designated initializer of UITableViewController is initWithStyle:, which takes a constant that d...
分类:
其他好文 时间:
2014-09-18 01:59:23
阅读次数:
191
Chapter 7 Delegation and Text Input1. Applications can access the same technology that powers those effects by using the UIInterpolatingMotionEffect c...
分类:
其他好文 时间:
2014-09-17 18:32:12
阅读次数:
228
1. A view controller’s view is not created until it needs to appear on the screen . This optimization is called lazy loading, and it can conserve memo...
分类:
其他好文 时间:
2014-09-16 18:50:10
阅读次数:
172
一、重写 DrwaRect-(void)drawRect:(CGRect)rect{ CGRect bounds = self.bounds; CGPoint center; center.x = bounds.origin.x + bounds.size.width / ...
分类:
其他好文 时间:
2014-09-16 14:12:50
阅读次数:
200
The basic problem we study in probability is:Given a data generating process, what are the properties of the outcomes?The basic problem of statistical...
分类:
其他好文 时间:
2014-09-16 12:33:10
阅读次数:
133
《Accelerated C++》 笔记 书籍ISBN:978-7-111-22404-4 Chapter 8
P123 typename关键字 这里举了一个这样的例子: template T median (vector v){
typedef typename vector::size_type...
分类:
编程语言 时间:
2014-09-15 22:35:29
阅读次数:
611
前言
经济的基础是人们相互贸易、相互依存,或者说是相互贸易产生了经济。我们之所以会做某件事,是因为这件事能够给我们带来好处,这一章,我们聊聊相互贸易能够给我们带来了什么,那是人们为什么要坚持贸易的原因。
一个现代经济寓言
我们来看一个简单的经济,假设世界上只有两种物品-牛肉和土豆,而且世界上只有两个人-牧牛人和种土豆的农民,他们每个人都既爱吃牛肉,又爱吃土豆。...
分类:
其他好文 时间:
2014-09-14 18:02:47
阅读次数:
257
7.4Write methods to implement the multiply, subtract, and divide operations for integers. Use only the add operator.比较简单。但是要封装得好。7.5 Given two squares...
分类:
其他好文 时间:
2014-09-14 11:17:07
阅读次数:
189
前言:
每个领域都有自己的语言和思考方式,学习这个领域的相关思考方法比我们在该领域中使用其他的领域的思考方式要来的好,虽然那可能有时给你带来灵感。
经济学的思考方式:
与其他学科一样,经济学家通常这样讨论他们的主题:先提出理论,再收集数据,然后分析数据,以努力证明或否定他们的理论。
科学方法:观察、理论和进一步观察
理论通常与观察...
分类:
其他好文 时间:
2014-09-13 14:40:45
阅读次数:
166
几种排序方法:冒泡 希尔 插入 快排 堆排 归并
sort.h
#ifndef _SORT_H_
#define _SORT_H_
void insert_sort(int*, int);
void bubble_sort(int*, int);
void shell_sort(int *, int);
void quick_sort(int*, int, int);
voi...
分类:
其他好文 时间:
2014-09-09 23:04:39
阅读次数:
369