c.#include#include#includeusing namespace std;#define MaxSize 1024int _next[MaxSize],extend[MaxSize];//扩展kmp//next[i]:x[i...m-1]与x[0...m-1]的最长公公前缀//ex...
分类:
其他好文 时间:
2016-01-23 21:21:05
阅读次数:
111
队列:QueueQueue.Queue(maxsize) FIFO先进先出Queue.LifoQueue(maxsize) LIFO后进先出Queue.PriorityQueue(maxsize) 优先级队列介绍一下此包中的常用方法: Queue.qsize() 返回队列的大小 Queue.empt...
分类:
其他好文 时间:
2016-01-23 07:54:16
阅读次数:
139
接下来把链表队列的代码分享给大家。因为还是链表操作,不做其他介绍。lqueue.h#ifndef _QUEUE_H#define _QUEUE_H#define MAXSIZE 10typedef struct node { int data; struct node * next;...
分类:
其他好文 时间:
2016-01-20 22:16:18
阅读次数:
140
链表栈的代码已经写了好久了,今天给大家分享出来。 链表栈还是链表的那几样操作,很简单,把链表搞定,它就不在话下了。不对它做过多介绍了,直接贴代码,水平有限,有错误还请指出。lstack.h#ifndef _STACK_H#define _STACK_H#define MAXSIZE 10typ...
分类:
其他好文 时间:
2016-01-20 22:10:36
阅读次数:
121
// 计算文本的size-(CGSize)sizeWithText:(NSString *)text maxSize:(CGSize)maxSize fontSize:(CGFloat)fontSize{ CGSize textSize = [text boundingRectWithSize...
分类:
其他好文 时间:
2016-01-04 01:20:24
阅读次数:
161
1 #include 2 #include 3 using namespace std; 4 5 #define maxSize 20 6 7 typedef struct 8 { 9 int data[maxSize];10 int front;11 int re...
分类:
其他好文 时间:
2015-12-30 10:32:42
阅读次数:
144
1 #include 2 #include 3 using namespace std; 4 5 #define maxSize 30 6 7 typedef struct 8 { 9 int data[maxSize];10 int top;11 }SqStack;12 ...
分类:
其他好文 时间:
2015-12-30 09:14:58
阅读次数:
173
1 #include 2 3 using namespace std; 4 5 #define maxSize 20 6 typedef struct 7 { 8 int data[maxSize]; 9 int length; 10 }Sqlist; 11...
分类:
其他好文 时间:
2015-12-29 12:47:52
阅读次数:
212
// // 关于数据结构的总结与复习 Coding//关于压缩矩阵转置和连乘#include #include #include #define maxsize 100#define error 0#define ok 1//#define _OJ_typedef struct triple{ .....
分类:
其他好文 时间:
2015-12-23 22:40:08
阅读次数:
275
public function addall(){ $Water = M('Waterrate'); $config = array( 'maxSize' => 0, 'root...
分类:
Web程序 时间:
2015-12-17 19:07:01
阅读次数:
168