大类分别为: 线性表,栈,队列,树,二叉树,图线性表: 顺序存储结构的定义 typedef struct { ElemType data[maxsize]; //存放顺序表中的元素 int length; //存放顺序表的长度 }SqList...
分类:
其他好文 时间:
2015-05-06 01:15:09
阅读次数:
180
#include #define maxSize 5using namespace std;typedef struct BTNode{ char data; struct BTNode * lchild; struct BTNode * rchild;}BTNode;BTNode...
分类:
编程语言 时间:
2015-04-29 23:03:14
阅读次数:
150
还算可以的模版
#include
#include
#include
#include
#include
#define ll long long
#define MAXN 9999
#define MAXSIZE 10
#define DLEN 4
using namespace std;
class BigNum
{
private:
int a[500]; //可以控制大...
分类:
其他好文 时间:
2015-04-29 10:02:59
阅读次数:
139
Seqlish.h#include<stdio.h>
#include<string.h>
#defineMAXSIZE100//定义线性表的最大长度
typedefstruct//定义顺序表结构
{
DATAListData[MAXSIZE+1];//保存顺序表的数组
intListLen; // 顺序表已存节点的数量
}SeqListType;
voidSeqListInit(SeqListType*..
分类:
其他好文 时间:
2015-04-28 02:08:22
阅读次数:
120
//把数组排成最大的数(数组、算法)。
//题目:输入一个正整数数组,将它们连接起来排成一个数,输出能排出的所有数字中最大的一个。
//例如输入数组{32, 321},则输出这两个能排成的最大数字32321.。
//或者输入数组{10,9,33,1000}输出这四个能排列的最大数字933101000.
#include
#define MAXSIZE 100
using namespace s...
分类:
编程语言 时间:
2015-04-27 16:57:45
阅读次数:
198
#include#include#define MAXSIZE 1000using namespace std;int main(){ int a[MAXSIZE]; ifstream fin("input.txt"); if( !fin.is_open() ) { ...
分类:
编程语言 时间:
2015-04-27 00:20:06
阅读次数:
267
python中,队列是线程间最常用的交换数据的形式。Queue模块是提供队列操作的模块,虽然简单易用,但是不小心的话,还是会出现一些意外。Queue队列的原则时:先进先出,后进后出常用方法: q.put() q.get() q.maxsize() q.qsize() 返回队列的大小 q.e...
分类:
编程语言 时间:
2015-04-25 19:47:02
阅读次数:
129
/*第1步:创建临时表空间 */ create temporary tablespace mdb_temp tempfile 'G:\data\oracle\mdb_temp.ora' size 10m autoextend on next 5m maxsize 2048m extent manag...
分类:
数据库 时间:
2015-04-23 21:34:58
阅读次数:
129
操作二叉树代码比较长 二叉树基本功能在了 注释打的比较少 1 #include "stdio.h" 2 #include "stdlib.h" 3 #define QUEUE_MAXSIZE 50 4 5 typedef char DATA; 6 typedef struct Chai...
分类:
编程语言 时间:
2015-04-23 17:17:18
阅读次数:
237
冒泡排序基本思想:两两比较相邻记录的关键字,如果反序就交换,直到没有反序为止。 1 #define MAXSIZE 10 2 3 typedef struct 4 { 5 int r[MAXSIZE]; //r[0] 用作哨兵或临时变量 6 int length; /...
分类:
编程语言 时间:
2015-04-23 12:46:13
阅读次数:
150