drop procedure IF EXISTS u_head_and_low_pro;delimiter //
create procedure u_head_and_low_pro()
begin
DECLARE n int DEFAULT 10;
SET n = n -1;
WHILE n > 0 DO
SELECT n;
s...
分类:
数据库 时间:
2015-04-23 17:38:15
阅读次数:
152
复杂度 O(lgN)使用条件:数据已经排序并在内存中。package chapter1;public class BinarySearch { public static > int binarySearch(T [] a, T x){ int low =0; int high = a.le...
分类:
其他好文 时间:
2015-04-23 01:59:16
阅读次数:
118
1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 int Partition(int *arr,int _low,int _high); 5 void QSort(int *arr,int low,int high); 6 void QuickSor.....
分类:
编程语言 时间:
2015-04-22 22:00:25
阅读次数:
161
英文缩写DIP(Dependence Inversion Principle)原始定义:High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details shou...
分类:
其他好文 时间:
2015-04-22 00:36:44
阅读次数:
190
状态标签(实时状态显示:气压,气温)
进度标签(任务过程:安装,加载)
value表示当前值
min表示最小值
max表示最大值
low表示最小警戒值
high表示最大警戒值
低于low或者大于high的值,都会显示黄色。
max 最大值
value 当前值
javascript脚本模拟进度条
var pro = document...
分类:
Web程序 时间:
2015-04-21 11:09:39
阅读次数:
153
坚持阅读经典代码,以下是《The C programming language》中的经典例子,每次读来都觉经典,遂摘录下来。
1 折半查找
/* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */
int binsearch(int x, int v[], int n)
{
int low, high,...
分类:
其他好文 时间:
2015-04-20 22:43:23
阅读次数:
147
一.有序数组的折半查找【步骤】① low=0,high=length-1; //初始值② 当low>high时,返回查找失败信息③ lowa[mid],low=mid+1; //查找在右半区 c.若key=a[mid],返回mid //查找成功【算法实现】public int bi...
分类:
其他好文 时间:
2015-04-20 22:07:19
阅读次数:
120
html....css....js/jqpshtml不求多规范,当然能在严师逼迫下强行规范准则最好了(目前正在带一个小菜,逼迫他)最好有对结构的直感!能一眼就看出这个是由多少块,怎么排列的css至少能写出规定样式!然后灵活的运用firebug,等浏览器调试工具最后写出此图!
分类:
其他好文 时间:
2015-04-20 18:23:17
阅读次数:
136
#include
using namespace std;
#define MAXN 10002
int Map[100][100],Vis[100],Low[100],Tree[100];
int n;
void Prim()
{
int i,j,p;
int minc;
memset(Vis,0,sizeof(Vis));
Vis[0]=1;
for( i=1...
分类:
编程语言 时间:
2015-04-20 17:03:16
阅读次数:
174
开始看C语言,主要是复习,所以就没必要从hello world开始了,写点例子熟悉下就好了。使用公式℃=(5/9)(℉-32)打印下列华氏温度与摄氏温度对照表:#include #include main(){ // c = (5/9)(f-32) int low,high,...
分类:
编程语言 时间:
2015-04-19 19:24:20
阅读次数:
233