分别以两个(带头结点的)循环有序链表表示集合A和B,完成这两个集合并集的操作:代码如下:#includetypedef struct LNode { int data ; struct LNode *next ;}LNode , *LinkList ;void union_OL(L...
分类:
其他好文 时间:
2014-07-16 19:26:37
阅读次数:
211
create database data_Test --创建数据库data_Test GO use data_Test GO create table tb_TestTable --创建表 ( id int identity(1,1) primary key, userName nvarchar(2...
分类:
其他好文 时间:
2014-07-13 19:11:16
阅读次数:
292
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
A checksum is an algorithm that scans a packet of data and returns a single numb...
分类:
其他好文 时间:
2014-07-13 18:47:10
阅读次数:
219
这里记录下堆的相关操作。
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