码迷,mamicode.com
首页 >  
搜索关键字:front    ( 2274个结果
数据结构6_顺序队列(循环队列)
本文实现了顺序队列,与链队列不同的是,顺序队列需要考虑一个问题,问题情况如下,解决办法:循环队列,当rear到分配的数组空间末尾时,转到数组头但是当q.rear==q.front时,又如何区分一种是空队列,一种是满队列的情况呢这里有两种方案本次代码实现了第一种方法,同时设置了一个技术变量length...
分类:其他好文   时间:2014-06-29 15:39:35    阅读次数:311
C++学习笔记:Vector容器
vector v:初始化一个0大小的向量vector v(10):初始化一个10个大小的向量push_back:增加一个元素pop:删除一个元素,不返回front:返回第一个元素back:返回最后一个元素at:返回特定位置的元素capacity:vector的容量,会自动扩大也可以直接通过v[x]操...
分类:编程语言   时间:2014-06-12 12:06:47    阅读次数:285
计算机网络基础学习笔记——理论
历史:第一代:50年代:(多台)终端(terminal)-->计算机(host)缺点:1.主机负荷重,效率低。2.终端速率低,线路利用低,费用高。60年代:通信控制处理机CCP(communication control processer)或FET(front end processor) 集中器...
分类:其他好文   时间:2014-06-06 15:34:57    阅读次数:421
linux中的线程同步:生产者、消费者问题
#include #include #include #include #include #define BUFFER_COUNT 5int Buffer[BUFFER_COUNT]; //指针数组int front = 0;int tail = 0;sem_t SemProd;sem_t SemC...
分类:编程语言   时间:2014-06-05 16:57:05    阅读次数:259
LeetCode: Valid Number [066]
【题目】 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:其他好文   时间:2014-06-04 23:45:09    阅读次数:388
C语言学习_三分查找
三分查找: #include #define M 10 int main(void) { int front, near, mid1, mid2; int n; int found; int a[M] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; front = 0; near = M - 1; found = 0; printf("input n:");...
分类:编程语言   时间:2014-06-03 01:38:47    阅读次数:399
MTF(Move-to-front transform)数据转换
1.什么是MTF MTF(move-to-front)是一种数据编码方式,用于提高数据压缩技术效果。 在数据压缩算法中,MTF可以作为一个额外的步骤。也就是说 ,可以先进行MTF编码,在进行数据压缩。2.MTF基本原理 主要使用的是数据的”空间局部性“,也就是最近出现过的字符很可能在接下来的文...
分类:其他好文   时间:2014-06-02 12:39:23    阅读次数:492
MongoDB客户端工具MongoVUE破解版
MongoDB客户端工具MongoVUE破解版 附上百度网盘地址:http://pan.baidu.com/s/1w8OyU  整体感觉和mysql-front有点类似,截图如下:...
分类:数据库   时间:2014-06-02 12:27:11    阅读次数:380
Go数据结构之Queue
Queue 简单而实用的数据结构,FIFO,通过循环数组避免队列出现“似乎满了”的现象。package Queueimport "errors"const ( defaultQueueSize=10)var queueSize inttype MyQueue struct{ front...
分类:其他好文   时间:2014-05-30 00:48:43    阅读次数:284
magento controller直接渲染Block
class Jago_Deal_IndexController extends Mage_Core_Controller_Front_Action{ public function ajaxAction() { $block = $this->getLayout()->cr...
分类:其他好文   时间:2014-05-29 15:36:20    阅读次数:287
2274条   上一页 1 ... 224 225 226 227 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!