#ifndef COMMON_HHH#define COMMON_HHH#define ASSERT(p) \ do{\ if (!p){\ printf("%s:%d\n",__FILE__,__LINE__ );\ }\ } while (...
分类:
其他好文 时间:
2014-06-28 18:34:04
阅读次数:
293
1.矩阵Lua中有两种表示矩阵的方法,一是“数组的数组”。也就是说,table的每个元素是另一个table。例如,可以使用下面代码创建一个n行m列的矩阵:mt = {} -- create the matrixfor i=1,N do mt = {} -- create a new ro...
分类:
其他好文 时间:
2014-06-28 17:17:13
阅读次数:
194
NSArray * array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);为啥 选择了 NSDocumentDirectory 还是返回一个array 而不是一个 直接一个 do...
分类:
其他好文 时间:
2014-06-28 15:03:51
阅读次数:
159
接口分离原则(The Interface Segregation Principle)表述为“客户类不应被强迫依赖那些它们不需要的接口。(Clients should not be forced to depend upon interfaces that they do not use.)”。本篇...
分类:
其他好文 时间:
2014-06-28 13:39:35
阅读次数:
312
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-28 13:23:40
阅读次数:
150
写程序中,无意中想到这个问题,随手搜了一下,发现大家对这个问题的看法不一先看一下官方文档http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.htmlWhat You Can Do in a SubclassA subclass i...
分类:
编程语言 时间:
2014-06-28 12:16:48
阅读次数:
193
The diesel engine crusher is mainly used in some place that don‘t have enough electricity or without electricity. They can do the middle or fine crush...
分类:
其他好文 时间:
2014-06-20 19:19:33
阅读次数:
248
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. _timeBtn = [UIButton buttonWithType:UIButton...
分类:
其他好文 时间:
2014-06-20 16:40:31
阅读次数:
172
http://acm.njupt.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1012进制转换时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:1362 测试通过:395...
分类:
其他好文 时间:
2014-06-20 15:03:04
阅读次数:
251
vim route.rb resources :fetched_apps do member do patch :import end end spring rake routes recommend_apps GET /recommend_apps(.:fo...
分类:
其他好文 时间:
2014-06-20 14:57:22
阅读次数:
213