#include #include class A{public: A() { printf("A()/n"); } ~A() { printf("~A()/n"); } A(const A& other) { ...
分类:
其他好文 时间:
2014-07-06 20:44:00
阅读次数:
152
前文介绍到SRIO有多重类型的包,其中包含了Doorbell包,Doorbell是一种快速的通知类型的短消息,包头和携带信息都很短,用于master srio设备通知slave srio设备,可用于DSP间的消息通知,也可用于FPGA与DSP间的消息通知。
Doorbell包payload的大小为16bit,如下图阴影处为有效位,其他为reserve位。5,6位用于选择Doorbell中断状态寄...
分类:
其他好文 时间:
2014-07-05 23:53:45
阅读次数:
391
vector是我使用比较多的一个容器,它相当于一个动态的数组,在STL中给他提供了很多接口,简单易懂,接下来简单的演示一下它是如何使用的。 我一般使用的一些函数接口有size(),reserve(),empty(),begin(),end(),push_back(),find(),erase(...
分类:
其他好文 时间:
2014-07-05 22:27:43
阅读次数:
276
关于STL容器,最了不起的一点是,它们会自动增长以便容纳下你放入其中的数据,只要没有超出它们的最大限制就可以。对于vector和string,增长过程是这样来实现的:每当需要更多空间时,就调用与realloc类似的操作。这一类似于realloc的操作分为4部分:
分配一块大小为当前容量的某个倍数的新内存。在大多数实现中,vector和string的容量每次以2的...
分类:
其他好文 时间:
2014-06-25 08:40:21
阅读次数:
287
vector对象是如何增长的
当需要更多空间的时候,会重新分配比新空间需求更大的内存空间,作为备用
管理容器的成员函数
shrink_to_fit //只适用于vector,string,deque
capacity reserve //只适用于vector,string
c.shrink_to_fit() //请将capacity()减少为与size相同大小
c.c...
分类:
编程语言 时间:
2014-06-13 20:51:16
阅读次数:
279
例如输入:I love programming
输出:I evol gnimmargorp
算法思路就是:根据空格提取每一个单词,存放在一个buffer里进行翻转处理,再添加到新的字符串。最后新的字符串就完成整个方法过程。
public class ReserveString {
public String reserve(String sentence){
Strin...
分类:
编程语言 时间:
2014-06-07 12:20:14
阅读次数:
246
2014-06-04 BaoXinjian一、步骤1.
输入销售订单,输入(Enter)-->预定(Book)-->计划(Schedule)-->保留(Reserve)2. 进行挑库操作,
挑库(Pick Release)-->挑库确认(Pick Confirm)3. 制作发运单,制作发运单(Cre...
分类:
其他好文 时间:
2014-06-05 16:49:05
阅读次数:
867
OpenGLES渲染OpenGLES使用GPU渲染图片,不占用CPU,但其使用还是挺复杂的.先用OpenGLES显示一张图片:////
ShowViewController.m// OpenGLES//// Copyright (c) 2014年 Y.X. All rights
reserve...
分类:
其他好文 时间:
2014-06-03 07:59:32
阅读次数:
387
代码1[cpp]view
plaincopy#include#includeclassA{public:A(){printf("A()/n");}~A(){printf("~A()/n");}A(constA&other){printf("other/n");}};intmain(){Aa;Ab(....
分类:
其他好文 时间:
2014-05-26 22:18:50
阅读次数:
382
I believe the fractional reserve gold system
has seen more stress and was probably in good part responsible for cementing the
bottom in gold around $1...
分类:
其他好文 时间:
2014-05-24 09:13:30
阅读次数:
254