一个简单的迭代器示例
--迭代工厂函数
function value(t)
local i = 0;
return
function()
i = i+1;
return t[i];
end;
end;
t = {10,20,30};
iter = va...
分类:
其他好文 时间:
2014-05-10 08:36:53
阅读次数:
268
类别.h@interface
NSString(XXXXXX)-(NSInteger)getLen;@end.m@implementation
NSString(XXXXXX) -(NSInteger)getLen{ return
0;}@end//////////////////////////....
分类:
移动开发 时间:
2014-05-08 20:20:28
阅读次数:
365
登陆mysql
harvey@harvey-Virtual-Machine:~/ruby/mydiary$ mysql -u root -pEnter password:
Welcome to the MySQL monitor. Commands end with ; or \g. 查看所有的数据...
分类:
数据库 时间:
2014-05-07 20:06:47
阅读次数:
452
#import "RootViewController.h"@interface
RootViewController ()@end@implementation RootViewController{ UILabel
*txtInteger; UILabel *txtFloat; ...
分类:
其他好文 时间:
2014-05-07 19:59:59
阅读次数:
461
Given a binary tree, find the maximum path
sum.The path may start and end at any node in the tree.For example:Given the
below binary tree, 1 ...
分类:
其他好文 时间:
2014-05-07 09:36:09
阅读次数:
300
返回数据格式:{"total":7,"rows":[ {"id":1,"name":"All
Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"}, {"id":2,"name":"Designi...
分类:
其他好文 时间:
2014-05-05 11:02:30
阅读次数:
355
$\bf命题1:$任意方阵$A$均可分解为可逆阵$B$与幂等阵$C$之积证明:设$r\left( A \right) =
r$,则存在可逆阵$P,Q$,使得\[PAQ = \left(
{\begin{array}{*{20}{c}}{{E_r}}&0\\0&0\end{array}} \right...
分类:
其他好文 时间:
2014-05-04 20:20:38
阅读次数:
337
$\bf命题:$设$A$为$n$阶实对称阵,$\alpha $为$n$维实向量,$\left(
{\begin{array}{*{20}{c}}A&\alpha \\{{\alpha ^T}}&1\end{array}}
\right)$为正定阵,证明:$A$正定且${\alpha ^T}{A^{ ...
分类:
其他好文 时间:
2014-05-04 20:04:37
阅读次数:
270
$\bf命题2:$任意方阵$A$均可分解为可逆阵$B$与对称阵$C$之积证明:设$r\left( A \right) =
r$,则存在可逆阵$P,Q$,使得\[A = P\left(
{\begin{array}{*{20}{c}}{{E_r}}&0\\0&0\end{array}} \right)...
分类:
其他好文 时间:
2014-05-04 19:47:13
阅读次数:
587
$\bf命题1:$设$\int_a^{ + \infty } {f\left( x
\right)dx} $收敛,若$\lim \limits_{x \to \begin{array}{*{20}{c}} {{\rm{ + }}\infty }
\end{array}} f\left( x \rig...
分类:
其他好文 时间:
2014-05-04 19:22:03
阅读次数:
1000