顺序存储: typedef struct _tag_LinkNode { int length; int capacity; void **node; }Link; 用以上结构体表达,length表示线性表目前有多少元素,capacity表示整个线性表的容量(创建之时已固定) 而这个node,最不容
分类:
其他好文 时间:
2016-02-20 00:38:27
阅读次数:
163
说明如果 使用过程中有BUG 一定要告诉我:在下面留言或者给我邮件(sawpara at 126 dot com)使用boost::thread库来实现生产者消费者模型中的缓冲区!
仓库内最多可以存放 capacity 个产品。
条件变量 condition_put 标记是否可以往仓库中存放一个产品。
条件变量 condition_get 标记是否可以从仓库中取出一个产品。
互斥量 mutexer...
分类:
编程语言 时间:
2016-02-17 17:33:02
阅读次数:
265
近日,外媒梳理了未来5年内,也是就是2020年仍将受到热捧的八大科技领域,为IT从业者如何做好长远规划、有针对性地培养自身技能、又不偏离热门岗位提供了参考。(图片来自网易) 2020年将热门的8大IT职业领域 1)程序员、安全专家、云容量管理者(cloud capacity managers) 据美
分类:
其他好文 时间:
2016-01-29 20:29:47
阅读次数:
232
#include<iostream>
#include<stdlib.h>
#include<assert.h>
usingnamespacestd;
classString
{
public:
String(constchar*str)
:_str(newchar[strlen(str)+1])
{
_size=strlen(str);
_capacity=_size+1;
strcpy(_str,str);
}
String(constString&s)
:..
分类:
编程语言 时间:
2016-01-27 17:41:22
阅读次数:
237
#include<iostream>
#include<stdlib.h>
#include<assert.h>
usingnamespacestd;
classString
{
public:
String(constchar*str)
:_str(newchar[strlen(str)+1])
{
_size=strlen(str);
_capacity=_size+1;
strcpy(_str,str);
}
String(constString&s)
:..
分类:
编程语言 时间:
2016-01-27 17:40:55
阅读次数:
197
#include<iostream>
#include<stdlib.h>
#include<assert.h>
usingnamespacestd;
classString
{
public:
String(constchar*str)
:_str(newchar[strlen(str)+1])
{
_size=strlen(str);
_capacity=_size+1;
strcpy(_str,str);
}
String(constString&s)
:..
分类:
编程语言 时间:
2016-01-27 17:39:34
阅读次数:
185
1 /** 2 * The array buffer into which the elements of the ArrayList are stored. 3 * The capacity of the ArrayList is the length of this...
分类:
编程语言 时间:
2016-01-19 15:47:29
阅读次数:
177
在Mesos和YARN中,都用到了dominant resource fairness算法(DRF),它不同于hadoop基于slot-based实现的fair scheduler和capacity scheduler,论文阅读:Dominant Resource Fairness: Fair Al...
分类:
编程语言 时间:
2016-01-17 16:17:02
阅读次数:
443
transcendental,transcendental capacity commission,the commission would keep venetian unimodel transitivity, system transitivity tournament,winning the...
分类:
其他好文 时间:
2016-01-16 18:56:47
阅读次数:
130
逆波兰表达式又叫做后缀表达式。在通常的表达式中,二元运算符总是置于与之相关的两个运算对象之间,这种表示法也称为中缀表示。#include<iostream>
#include<assert.h>
usingnamespacestd;
classStack
{
public:
Stack()
:_array(NULL)
,_size(0)
,_capacity(0)
{..
分类:
其他好文 时间:
2016-01-03 00:55:55
阅读次数:
170