码迷,mamicode.com
首页 >  
搜索关键字:maxsize    ( 995个结果
顺序表的插入,删除与查找的实现
插入与删除: #include <stdio.h> #define MaxSize 10 typedef struct { int data[MaxSize]; int length; }SqList; bool ListInsert(SqList &L, int i, int e) { if (i ...
分类:其他好文   时间:2020-06-14 10:48:53    阅读次数:63
数据结构::线性队列
数据结构::线性队列 #include <iostream> using namespace std; #define MaxSize 10 /*//链栈 typedef struct Linknode{ int data; struct Linknode *next; }*LiStack; */ ...
分类:其他好文   时间:2020-06-09 16:50:36    阅读次数:71
线程-队列
线程队列 queue 使用import queue,用法与进程Queue一样 queue.Queue 先进先出:队列模型 queue.Queue(maxsize=0) #先进先出 import queue q=queue.Queue() q.put('first') q.put('second') ...
分类:编程语言   时间:2020-06-06 21:57:49    阅读次数:72
22 冒泡排序
#include <stdio.h> #include<time.h> #include<stdlib.h> # define MAXSIZE 10 //要排序数组的长度 #define random(x) (rand()%x) //宏定义随机数函数 maopao_sort(int* ar); ma ...
分类:编程语言   时间:2020-06-05 00:45:28    阅读次数:78
21 循环队列
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> //exit 函数需要 #include <malloc.h> #define MAXSIZE 8 typedef struct queue { int* arr; //int 类 ...
分类:其他好文   时间:2020-06-04 01:42:21    阅读次数:70
oracle 表空间自动扩展
修改某数据文件为不限制大小ALTER DATABASE DATAFILE 'D:\oracle_data\xxx.DBF' AUTOEXTEND ON NEXT 500M MAXSIZE UNLIMITED; 增加新的数据文件alert tablespace 表空间名 add datafile 'D ...
分类:数据库   时间:2020-06-02 13:05:19    阅读次数:77
数据结构------栈和队列
一、栈的基本概念:只允许在一端进行插入或者删除操作的线性表 <后进先出> 栈顺序存储结构: 共享栈:将两个栈底设置在共享空间的两端,栈顶向空间中间延伸 判空:0号栈 top == -1 1号栈 top == MaxSize 栈满:top1 - top0 == 1 优点:存取时间复杂度仍未O(1),但 ...
分类:其他好文   时间:2020-05-29 12:04:35    阅读次数:66
python 队列Queue
from Queue import Queue qlist=Queue(maxsize=300) import threading for i in range(20): qlist.put("hello num%d" %(i)) def process_work(qlist): while Tru ...
分类:编程语言   时间:2020-05-28 00:58:28    阅读次数:61
c语言 二叉树的创建及其递归与非递归算法
以下包含有前后序的递归和非递归算法 #include<stdio.h> #include<stdlib.h> #define MAXSIZE 20 typedef struct node{ int data; struct node* right; struct node* left; }Node; ...
分类:编程语言   时间:2020-05-27 00:51:06    阅读次数:72
栈的顺序存储结构和链式存储结构的实现
偷个懒,整合一下书上代码就得到了 顺序存储: 1 #include<iostream> 2 #include<cstdlib> 3 #define MaxSize 30 4 5 using namespace std; 6 7 struct SqStack { 8 int data[MaxSize] ...
分类:其他好文   时间:2020-05-25 17:29:31    阅读次数:101
995条   上一页 1 ... 3 4 5 6 7 ... 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!