码迷,mamicode.com
首页 >  
搜索关键字:maxsize    ( 995个结果
顺序表的题目
#include<iostream> using namespace std; #define ElemType int const int MaxSize=100; typedef struct{ ElemType data[MaxSize]; int length; }SqList; //就地逆 ...
分类:其他好文   时间:2020-03-22 19:40:19    阅读次数:75
线性结构--线性表
typedef int Position; typedef struct LNode *List; struct LNode { ElementType Data[MAXSIZE]; Position Last; }; /* 初始化 */ List MakeEmpty() { List L; L = ...
分类:其他好文   时间:2020-03-18 15:16:41    阅读次数:50
1381. Design a Stack With Increment Operation
Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with maxSize  ...
分类:其他好文   时间:2020-03-16 09:53:58    阅读次数:54
栈与队列应用:迷宫问题(DFS非最短路径)
//先输入行列,在输入迷宫 以-1 -1 结束 #include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 #define ERROR -1 #define OK 1 struct Direction { int incX; //增量 int i ...
分类:其他好文   时间:2020-03-14 13:05:04    阅读次数:69
栈与队列:循环队列算法+可执行代码
//队列顺序存储结构 //取模运算:就是取余数,它的值永远不会大于除数 (rear+1)%QueueSize (front+1)%QueueSize //队列的顺序存储结构 #define MAXSIZE 100 typedef struct { ElemType *base; //用于存放内存分配 ...
分类:编程语言   时间:2020-03-14 12:41:29    阅读次数:64
创建表空间
CREATE TABLESPACE tbs_perm_02 DATAFILE 'tbs_perm_02.dat' SIZE 10M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE 2048M; 参数说明: DATAFILE:数据文件保存的路径,支持多个数... ...
分类:其他好文   时间:2020-03-05 19:13:15    阅读次数:75
静态顺序表操作
```//静态顺序表操作 #include #define Maxsize 10//定义typedef struct{ int data[Maxsize]; int length;}SqList;void init(SqList&); //初始化 void insert(SqList& , int ... ...
分类:其他好文   时间:2020-02-28 18:41:22    阅读次数:58
栈-顺序栈
#include<iostream> #include<vector> using namespace std; //结构定义 #define maxSize 50 typedef struct{ int data[maxSize]; int top; }SqStack; void initStac ...
分类:其他好文   时间:2020-02-27 14:39:16    阅读次数:55
常用数据结构代码示例
线性表 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define MAXSIZE 20 //存储空间大小 5 6 typedef int data_t; 7 8 //线性表结构 9 typedef struct 10 { 11 data_t dat ...
分类:其他好文   时间:2020-02-23 13:13:03    阅读次数:85
Java线程池中线程的生命周期
设:我们有一个coreSize=10,maxSize=20,keepAliveTime=60s,queue=40 1、池初始化时里面没有任何线程。 2、当有一个任务提交到池就创建第一个线程。 3、若继续提交任务,有空闲线程就调拨空闲线程来处理任务?若没有线程空闲则再新建一个线程来处理,如此直到cor ...
分类:编程语言   时间:2020-02-20 20:09:05    阅读次数:67
995条   上一页 1 ... 7 8 9 10 11 ... 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!