def minindex array_,index_ index=nil beginindex = 0 minvalue = array_[0] if index_ > 0 beginindex=index_+1 minvalue = array_[index_] end ...
分类:
编程语言 时间:
2014-11-23 18:53:23
阅读次数:
161
1.标量:ag1:declarev_ename emp.ename%type;--自己称为单变量beginselect ename into v_enamefrom emp where empno=&no;dbms_output.put_line('雇员名称'||v_ename);end;ag2:d...
分类:
数据库 时间:
2014-11-23 15:51:01
阅读次数:
264
1.标量:ag1:declarev_ename emp.ename%type;--自己称为单变量beginselect ename into v_enamefrom emp where empno=&no;dbms_output.put_line('雇员名称'||v_ename);end;ag2:d...
分类:
数据库 时间:
2014-11-23 15:45:11
阅读次数:
276
1. 传参或在匿名函数内慎用self()通常在做消息传递或新建进程的时候我们需要将当前进程的Pid发给目标进程以便接收返回信息,但初学者不留意容易犯以下错误spawn(fun() -> loop(self(), gen_tcp:accpet(...))end).fun这段代码在本进程内是不会预...
分类:
其他好文 时间:
2014-11-23 15:39:27
阅读次数:
263
for j in 1...array.size z=j-1 key=array[j] while (z >= 0) and (array[z] > key) do array[z+1]=array[z] z=z-1 end array[z+1]=keyendputs array
分类:
编程语言 时间:
2014-11-23 07:02:38
阅读次数:
227
var start = new Date; setTimeout(function(){ var end = new Date; console.log(‘end~~~‘,end-start,‘ms‘); },0); while(new Date - start < 4000){ if(new Date - start == 3999) console.log(‘end‘) } 运行s...
分类:
编程语言 时间:
2014-11-23 02:00:46
阅读次数:
201
1、stl::bind 和std::mem_fun_ref系列的配合使用出现了问题,多参形式不知道如何组织。适配器的操作真心难受!!!只能迷迷糊糊地用着。要使用非质变算法时需要作用于容器时只能考虑lambda或者transfer操作。待续
//使用函数名输出
std::for_each(iv.begin(),iv.end(),print);//类中的函数操作保存在某个位置,我要阅读其他书籍才知道。仿函数对象指的一个仿函数对象,普通函数对象就是函数名,待续
cout<<endl;
//使用仿函数对象...
分类:
编程语言 时间:
2014-11-22 23:13:23
阅读次数:
482
题意:不多说了。
题解:
begin
首先想到:我们要强制走过那些下界。
怎么强制呢?我们把费用赋为-inf!!看他走不走!
然后费用的初值就需要把这些扣掉的inf加回来。
end.
贴代码:
#include
#include
#include
#include
#include
#define N 500
#define M 20100...
分类:
其他好文 时间:
2014-11-22 12:06:58
阅读次数:
177
1.存储过程建立的格式:create or replace procedure My_Procedure is begin --执行部分(函数内容); end; / 例子:(以hr表为例)create or replace procedure insert_procedur...
分类:
数据库 时间:
2014-11-22 11:52:09
阅读次数:
178
@protocol NursePtotocol //保姆的协议方法- (void)startToAmuseBaby;@end@implementation Women- (void)startToAmuseBaby{ NSLog(@"保姆哄孩子");}@end@interface Baby : N....
分类:
其他好文 时间:
2014-11-22 11:45:29
阅读次数:
200