if 条件成立 then 语句1;elsif 条件成立 then 语句2 ;elsif 条件成立 then 语句3 ;else 语句3 end if ;A<B成立时进入程序体,不成立退出while A<B loop.程序体end loop;当条件成立时退出循环loop exit when A<B.程...
分类:
数据库 时间:
2015-05-21 21:47:16
阅读次数:
178
shell的单、多、控制进程的使用方法
一、100个任务使用200秒(普通完成)
catprocess2.sh
#!/bin/bash
functionaaa()
{
start=`date"+%s"`
for((i=1;i<=100;i++))
do
echotest;sleep2
done
end=`date"+%s"`
echo"time:`expr$end-$start`"
}
aaa
exit0
================执行..
分类:
系统相关 时间:
2015-05-21 19:55:55
阅读次数:
192
if 条件成立 then 语句1;elsif 条件成立 then 语句2 ;elsif 条件成立 then 语句3 ;else 语句3 end if ;A<B成立时进入程序体,不成立退出while A<B loop.程序体end loop;当条件成立时退出循环loop exit when A<B.程...
分类:
数据库 时间:
2015-05-21 19:31:23
阅读次数:
122
itemize和enumerate还有description 是LaTeX里列举的三种样式,分别讲一些使用技巧。itemize(意为分条目):\begin{itemize}\item[*] a\item[*] b\end{itemize}这样出来的形式为* a* bitem的方括号里的内容是为定制前...
分类:
编程语言 时间:
2015-05-21 08:57:43
阅读次数:
230
select case when '0110' = 110 then 'true'else 'false' end from dual;select case when to_number('0110') = to_number(110) then 'true'else 'false' end from dual;...
分类:
数据库 时间:
2015-05-20 22:21:56
阅读次数:
175
slice()和splice()是JavaScript中Array对象原型的两个方法,由于方法名很相像,经常会记混两者的作用,下面来做一个明确的区分。1.slice(start[,end]):从数组中取元素,返回取出的子数组,对原数组无影响。其中,start参数必填,表示取元素的起始位置;end参数可选,表示取元..
分类:
编程语言 时间:
2015-05-20 15:04:21
阅读次数:
129
只能在真机使用.模拟器没有E-mail发送功能.无法调用#import "EmailViewController.h"#import #import @interface EmailViewController ()@end@implementation EmailViewController- (...
分类:
其他好文 时间:
2015-05-20 14:42:28
阅读次数:
91
题目大意是给出一段数字序列,可以忽略一次一段连续的序列,求忽略后的最长连续上升子序列
思路是dp,用end数组记录以当前元素作为结尾的最长连续上升序列的元素个数,那么不难得到状态转移方程为
dp(i) = max(dp(i - 1), max( end[k] ) ) + 1
代码如下:
#include
#include
#include
#include
#includ...
分类:
其他好文 时间:
2015-05-19 22:44:26
阅读次数:
182
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js返回值数据格式:var remote_ip_info = {“ret”:1,”start”:”59.37.164.179″,”end”:”59.37.165.17″,”countr...
\begin{bmatrix}\sigma_\alpha & \tau_{\alpha + 90^o} \\\tau_{\alpha + 90^o} & \sigma_\alpha\end{bmatrix} = \begin{bmatrix}cos\alpha & -sin\alpha\\sin\a...
分类:
其他好文 时间:
2015-05-19 22:14:56
阅读次数:
138