JDBC(Java Data Base Connectivity,java数据库连接)是一种用于执行SQL语句的Java API,可以为多种关系数据库提供统一访问,它由一组用Java语言编写的类和接口组成。JDBC 编程基本步骤一、装载驱动程序 String DriveName="net.sour....
分类:
数据库 时间:
2014-07-13 22:11:40
阅读次数:
368
PS::今天巴西又被虐了,做梦以为是3:1,醒来是3:0mysql> delimiter $$mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; ...
分类:
其他好文 时间:
2014-07-13 21:32:50
阅读次数:
195
这里记录下堆的相关操作。
op 1:
'''
@ data: the heap array
@ p : index of parent item
@ n : number of data
@@ Swap p and it's son items, make p the largest of them
'''
def swapForMaxHeap(data, n, p):
l...
分类:
其他好文 时间:
2014-07-13 17:07:15
阅读次数:
223
尽管指定了目的地,asmcmd cp命令还是在 +DATA/ASM 下创建文件...
分类:
其他好文 时间:
2014-07-13 16:47:51
阅读次数:
237
首先考虑一个具有几个构造函数的MyClass类。假设我们决定在这个类的私有部分添加一个新的数据成员,称为int_data_:
class MyClass
{
public:
MyClass()
: int_data_(0)
{}
explicit MyClass(const Apple& apple)
: int_data_(0)
{}
MyClass(const stri...
分类:
其他好文 时间:
2014-07-13 16:39:59
阅读次数:
184
比如在插入有序链表的过程中,一般情况下要使用俩指针来遍历,而后还要判断是否在第一个位置插入;利用指针的指针后不需要另外考虑这种特殊情况。
代码:
#include
#include
struct node{
int data;
struct node *next;
} *head;
//sorted link-list
void insert(struct no...
分类:
其他好文 时间:
2014-07-13 15:38:13
阅读次数:
198
天气越来越热,看书还得静得下心啊,今天继续图这一章,概念和算法众多,第一遍看以广度优先的形式为主,以后若要用到具体的算法再去翻“算法导论”吧。下面是学习内容和笔记。图(graph)1.图的存储结构邻接矩阵:顶点数组+边数组(二元);无向图的边数组为对称矩阵,有向图..
分类:
其他好文 时间:
2014-07-13 14:32:18
阅读次数:
214
//错误操作类<?phpclasslog{publicstaticfunctionwrite($err){$fh=fopen(ROOT.‘data/log.txt‘,‘a‘);//追加方式打开,允许从后面追加内容$err=date(‘Y-m-dH:i:s‘,time())."\r\n".$err;fwrite($fh,$err);fclose($fh);}}
分类:
Web程序 时间:
2014-07-13 14:29:16
阅读次数:
249
The Java Connections FrameWork is a group of class or method and interfacs in the java.util package. Its main purpose is to provide a unified framework for implementing common data structure. A collec...
分类:
编程语言 时间:
2014-07-13 13:43:20
阅读次数:
218
Design an algorithm and write code to find the first common ancestory of two nodes in a binary tree. Avoid storing additional nodes in data structure....
分类:
其他好文 时间:
2014-07-13 13:24:21
阅读次数:
279