码迷,mamicode.com
首页 >  
搜索关键字:maxsize    ( 995个结果
数据结构之顺序表
1 #include 2 #include 3 #define ElementType int 4 #define MAXSIZE 100 5 6 struct LNode{ 7 ElementType Data[MAXSIZE]; 8 int Last; 9 }; 10 typedef struc... ...
分类:其他好文   时间:2019-07-25 23:29:28    阅读次数:90
数值的比较
/** * 比较两个Ineger 数值的大小 返回最小值和最大值 */ public static Integer[] compareSize(Integer str1, Integer str2, Integer str3, Integer str4) { Integer a[] = new In... ...
分类:其他好文   时间:2019-07-24 19:29:03    阅读次数:74
高精度模板
#include<bits/stdc++.h> #define MAXN 9999 #define MAXSIZE 10 #define DLEN 4 typedef long long ll; using namespace std; class BigNum { private: ll a[50... ...
分类:其他好文   时间:2019-07-08 00:01:01    阅读次数:127
数据结构总结 第二章 线性表 抽象数据类型的具体实现
#include #include #include #define MAXSIZE 1000 #define ERROR 0 #define OK 1 using namespace std; typedef int Status; typedef int ElemType; //////////... ...
分类:其他好文   时间:2019-07-06 19:35:11    阅读次数:138
ArrayQueue
Queue定义,直接copyJava的Queue,去除了Collection接口。 ArrayQueue ...
分类:其他好文   时间:2019-07-05 21:06:56    阅读次数:102
22-队列
队列(Queue) 一般的顺序队列: 由于这种结构会有假溢出的情况,所以一般不选择这种队列,而更多的使用循环队列。 循环队列: 判断队列满的情况: 1、count来计数;通常使用count Count等于队列的MAXSIZE 2、Flag标志 int 入队列 flag=1 出队列flag=0 Fro ...
分类:其他好文   时间:2019-07-04 14:38:48    阅读次数:105
208A
#include #include #include #define Maxsize 210 int main() { char sentence[Maxsize]; char wub[4]={'W', 'U', 'B'}; scanf("%s", sentence); int length=str... ...
分类:其他好文   时间:2019-07-02 09:37:00    阅读次数:128
邻接矩阵
typedef char DType typedef int BType; #define maxsize 100 #define inifinity 65535 typedef struct { DType v[maxsize];//顶点表 BType a[maxsize][maxsize];//... ...
分类:其他好文   时间:2019-06-29 18:54:51    阅读次数:73
线性表的两种形式的定义与相关操作(单链表和顺序表)
#include #include #include #pragma warning(disable:4996) #define ERROR 0 #define OK 1 #define MAXSIZE 100 typedef int ElemType; typedef int Status; ty... ...
分类:其他好文   时间:2019-06-29 00:28:07    阅读次数:108
线性表 顺序表
#include #include #define Maxsize 10 typedef int elementype; typedef struct { elementype v[Maxsize]; int length; }sqlist; int main() { sqlist *L; L = ... ...
分类:其他好文   时间:2019-06-28 11:48:50    阅读次数:91
995条   上一页 1 ... 15 16 17 18 19 ... 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!