第一题:数组#include
const int MAXSIZE = 20;
class List{
public:
List()
{
arr = new int[MAXSIZE]; //Allocation the space
length = 0; //the length of current array
cout<<...
分类:
其他好文 时间:
2015-10-25 12:19:25
阅读次数:
175
#include #include #include "PublicDS.h"#includetypedef struct stack{ int top = -1; int maxSize = 100; //用于存放二进制位 int *data = (int *)malloc(100 * sizeo...
分类:
其他好文 时间:
2015-10-20 22:37:28
阅读次数:
176
本文是数据结构基础系列(6):树和二叉树中第14课时线索二叉树的例程。#include
#include #define MaxSize 100
typedef char ElemType;
typedef struct node
{
ElemType data;
int ltag,rtag; //增加的线索标记
struct...
分类:
其他好文 时间:
2015-10-20 06:42:33
阅读次数:
164
本文是数据结构基础系列(6):树和二叉树中第9课时二叉树的基本运算及其实现的例程。单链表算法库算法库采用程序的多文件组织形式,包括两个文件:
1.头文件:btree.h,包含定义顺序表数据结构的代码、宏定义、要实现算法的函数的声明;#ifndef BTREE_H_INCLUDED
#define BTREE_H_INCLUDED#define MaxSize 100
typedef...
分类:
编程语言 时间:
2015-10-19 21:00:31
阅读次数:
294
1 1. 数组定义: 2 3 typedef struct SqList 4 { 5 ElemType list[MaxSize]; 6 int size; 7 } SqList; 8 9 2. 指针定义: 10 11 typedef struct SqList 12 { ...
分类:
其他好文 时间:
2015-10-18 13:59:24
阅读次数:
128
线性表1,线性表可分为:顺序表和链表。2,其中顺序表和链表有又静态顺序表,动态顺序表和静态链表,动态链表之分。3,线性表的一般操作有:(1):线性表的创建,插入,删除等操作。//顺序表的一些基本操作#include#define MaxSize 10/...
分类:
其他好文 时间:
2015-10-11 00:18:54
阅读次数:
215
1 --创建临时表空间 2 create temporary tablespace pr_temp 3 tempfile 'F:\app\data\tablespace\pr_temp.dbf' 4 size 50m 5 autoextend on next 50m maxsize 2048m 6....
分类:
数据库 时间:
2015-10-10 18:31:20
阅读次数:
198
#include#include#include#include#include#define MAXSIZE 100typedef struct{ char elem[MAXSIZE]; int top; int low; int flag; //1是数字,2是字母,3是符号}Stack;char...
分类:
其他好文 时间:
2015-10-08 16:10:01
阅读次数:
153
本文针对数据结构基础系列网络课程(5):数组与广义表中第3课时稀疏矩阵的三元组表示。问题:定义稀疏矩阵的三元组表示的数据结构,实现其基本操作,并设计测试函数进行测试代码:#include
#define M 6
#define N 7
#define MaxSize 100 //矩阵中非零元素最多个数
typedef int ElemType;typedef s...
分类:
编程语言 时间:
2015-10-07 20:27:04
阅读次数:
247
SeqList:#ifndef SEQLIST_H_#define SEQLIST_H_const int Size = 100;templateclass SeqList{private: Type *m_elements; const int m_maxsize; int m_...
分类:
编程语言 时间:
2015-09-25 21:35:38
阅读次数:
258