1 shell 的$! ,$?, $$,$@$n $1 the first parameter,$2 the second...$# The number of command-line parameters.$0 The name of current program.$? ...
分类:
其他好文 时间:
2014-10-09 01:07:27
阅读次数:
266
SQL Server 中时间比较例子:select count(*) from table whereDATEDIFF ([second], '2004-09-18 00:00:18', '2004-09-18 00:00:19')> 0说明 select DATEDIFF(day, time1 ....
分类:
数据库 时间:
2014-10-09 00:14:57
阅读次数:
237
The maze was a rectangle with sizes N by M. There was a door in the maze. At the beginning, the door was closed and it would open at the T-th second f...
分类:
其他好文 时间:
2014-10-08 18:32:25
阅读次数:
205
Analysis of Algorithms:First part of the course is focused on analysis.Second part of the course is focused on design.The analysis of algorithm is the...
分类:
其他好文 时间:
2014-10-06 13:21:00
阅读次数:
182
在挑战程序设计竞赛中看到调用pair,就上网查了一下类型申明有两种template struct pairtypedef pairt p;//p为任意的调用起来就是p.first=..p.second=..当然,如果是是用第一种申明方式的话,还要加上pairp;这个可以和queue连用,这样的话,....
分类:
其他好文 时间:
2014-10-06 01:53:59
阅读次数:
198
pair实质上是一个结构体,其主要的两个成员变量是first和second,这两个变量可以直接使用。初始化一个pair可以使用构造函数(如上),也可以使用make_pair函数,一般make_pair都使用在需要pair做参数的位置,可以直接调用make_pair生成pair对象。 另一个使用的方面就是pair可以接受隐式的类型转换,这样可以获得更高的灵活度。...
分类:
其他好文 时间:
2014-10-05 18:34:08
阅读次数:
150
方法 1、 year(),month(),day() 方法 2、 dayofweek(),dayofmonth(),dayofyear(); 方法 3、 hour(),minute(),second(); 方法 4、 weekofyear();
分类:
数据库 时间:
2014-10-02 20:24:03
阅读次数:
199
brief : the quick sort can divide into two steps, the first step is partition, the second step is conquer the subset.i) as the first step, array A[lef...
分类:
其他好文 时间:
2014-10-01 01:21:50
阅读次数:
209
学习笔记关于Jquery的merge方法话不多说,先上图使用jquery时,其智能提示如上,大概意思就是合并first和second两个数组,得到的结果是first+(second去重后的结果)的并集接下来,做出测试:1 $(function () {2 var arr1 = ['apple...
分类:
其他好文 时间:
2014-09-30 14:08:59
阅读次数:
148
my work environment:
aliyun Ubuntu 14.04 64位
first phase:apt-get update (it is very important,otherwise will cause 404 error)
second phase:installation referenced by other website informatio...
分类:
其他好文 时间:
2014-09-29 19:36:41
阅读次数:
287