Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2014-07-12 13:17:10
阅读次数:
248
[root@localhost ~]# time dd if=/dev/zero bs=1024 count=1000000 of=/1Gb.file记录了1000000+0 的读入记录了1000000+0 的写出1024000000字节(1.0 GB)已复制,11.6493 秒,87.9 MB/秒...
分类:
系统相关 时间:
2014-07-10 12:48:45
阅读次数:
325
Matlab取整函数有: fix, floor, ceil, round.取整函数在编程时有很大用处。一、取整函数1.向零取整(截尾取整)fix-向零取整(Round towards zero);>> fix(3.6) ans = 32.向负无穷取整(不超过x 的最大整数-高斯取整)floor-向负...
分类:
其他好文 时间:
2014-07-07 21:11:49
阅读次数:
198
refer linkThe"*and"+registers are for the system's clipboard (:help registers). Depending on your system, they may do different things. For instance, ...
分类:
其他好文 时间:
2014-07-03 12:10:56
阅读次数:
195
1、断言
let age = -3
assert(age >= 0, "A person's age cannot be less than zero")
// 因为 age
2、Swift赋值符(=)不返回值,以防止把想要判断相等运算符(==)的地方写成赋值符导致的错误。数值运算符(+,-,*,/,%等)会检测并不允许值溢出。
3、在对负数b求余时,b的符号会被忽略。这意味着 a %...
分类:
其他好文 时间:
2014-07-02 11:46:51
阅读次数:
286
Add-Type -Assembly PresentationCore[Windows.Clipboard]::SetText("abc中文def")先用 $output | Out-String 整成一个多行字符串$output = "String 整成一个多行字符串"$OutputEncodin...
分类:
其他好文 时间:
2014-07-01 16:42:41
阅读次数:
203
无限大小 C语言如何表示无限大小,NAN?redis里面这么搞的:staticdoubleR_Zero,R_PosInf,R_NegInf,R_Nan;/*Doubleconstantsinitialization*/R_Zero=0.0;R_PosInf=1.0/R_Zero;R_NegInf=....
分类:
其他好文 时间:
2014-06-30 15:34:22
阅读次数:
169
对于叶子节点和非叶子节点非别列公式。
然后化简公式。
和非树上的差不多。。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define eps 1e-9
#define zero(x) ((fabs(x)<eps?0:x))
#define maxn 11000
#de...
分类:
其他好文 时间:
2014-06-28 07:15:49
阅读次数:
263
1、DHI MIKE Zero 2012 SP3 Win32_64 2DVD(水利模型系统)DHI MIKE Zero 2012 SP3 Win32_64 2DVD DHI.MIKE.ZERO.v2007-ISO 1DVD(水利模型系统) 包括以下模型系统: MIKE 11 - 1D河流和渠道模拟系...
如何扩容swap分区现在swap分区有9G想要扩容为11G,磁盘空间从/home目录下提取操作步骤如下:注解:1.在空闲的分区下生成一个空文件,大小为下面命令参数中的bs*count。dd if=/dev/zero of=/opt/swapfiles bs=1024k count=20482.格式化...
分类:
其他好文 时间:
2014-06-25 18:37:38
阅读次数:
209