n全排列输出:int WPermutation(int num, bool bRepeat)
num表示num全排列
bRepeat标志是否产生重复元素的序列。
int Permutation(int n, int* A, int cur, bool bRepeat)
{
static int number = 0;
if(cur == n)
{
number++;...
分类:
其他好文 时间:
2014-08-26 19:47:06
阅读次数:
185
null 与 undefinedJavaScript 中一共有 5 种基本类型,分别是 String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是 null ; Undefined 类型也只有一个值...
分类:
Web程序 时间:
2014-08-26 19:23:36
阅读次数:
265
CREATE OR REPLACE PROCEDURE SINGLSCHOOL( PICIID IN VARCHAR2, SCHOOLID IN NUMBER, SCHETYPE IN number, SCHENAME OUT VARCHAR2, ISCORE OUT VARCHAR2, ISTH....
分类:
其他好文 时间:
2014-08-26 19:06:36
阅读次数:
225
Oracle分析函数 --row_number():连续不重复 1234567 --rank():跳跃可重复 12333678 --dense_rank():连续可重复 12333456 row_number()?over(partition?by?deptno?order?by?sal?desc) ? over( partitio...
分类:
数据库 时间:
2014-08-26 17:50:06
阅读次数:
323
/**
*更新数据函数
*@param用户提交的表单数据存入数组$array
*@param操作的数据表$table
*@param更新条件$where
*@return影响的数据条数number
*/
functionupdate($array,$table,$where=NULL){
foreach($arrayas$key=>$val){
$sep=($str==null)?"":",";
$str.=$sep.$k..
分类:
数据库 时间:
2014-08-26 17:39:17
阅读次数:
306
创建存储过程和触发器
1、建表
首先先建两张表(users表和number表),具体设计如下图:
2、存储过程
写一个存储过程,往users表中插入数据,创建过程如下:
代码如下:
[sql]
view plaincopy
BEGIN #Routine body goes here... declare n ...
分类:
其他好文 时间:
2014-08-26 17:32:14
阅读次数:
151
Minimum Inversion Number
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Problem Description
The inversion nu...
分类:
其他好文 时间:
2014-08-26 17:23:36
阅读次数:
283
1,配置VIM
打开vim,普通模式下输入下面的命令找到vim的位置
:echo $VIM
/usr/share/vim打开返回目录下的文件vimrc,进行配置
vim /usr/share/vim/vimrc具体配置如下:
syntax on "语法高亮
set autowrite "自动保存
set number "显示行号
set autoindent "自动缩进
set tabst...
分类:
系统相关 时间:
2014-08-26 17:22:15
阅读次数:
283
什么是bucketbucket的英文解释:Hash table lookup operations are often O(n/m) (where n is the number of objects in the table and m is the number of buckets), whi...
分类:
其他好文 时间:
2014-08-26 17:08:36
阅读次数:
308
TOP 子句TOP 子句用于规定要返回的记录的数目。对于拥有数千条记录的大型表来说,TOP 子句是非常有用的。SQL Server 的语法:SELECT TOP number|percent column_name(s)FROM table_nameSELECT TOP 1000 [id] ...
分类:
数据库 时间:
2014-08-26 17:03:16
阅读次数:
218