在STL中,排序是个很重要的话题。1.algorithm 里的sort()只接收RandomAccessIterator用于像vector,dequeue的排序2.像set,map,这种关联式容器,本身就由RBTree维护了有序,只要遍历一遍就行了。3.而list比较特殊一点,由于只有Bidirec...
分类:
其他好文 时间:
2014-06-28 22:09:39
阅读次数:
209
#include#includeusingnamespacestd;intmain(){vectorv(3);v[0]=2;v[1]=7;v[2]=9;v.insert(v.begin(),8);//在最前面插入新元素。v.insert(v.begin()+2,1);//在迭代器中第二个元素前插入新...
分类:
其他好文 时间:
2014-06-28 20:28:27
阅读次数:
144
先Reset Vector EPCS Exception Vector Ram工程Program memory ,Read-only data memory...均为RAM.Hardware Image选择 EPCS编译.编译:先把POF文件下载到EPCS中.放到最底层后通过FLASH PROGRA...
分类:
移动开发 时间:
2014-06-21 12:33:42
阅读次数:
302
Web Service It is based on SOAP and return data in XML form. It support only HTTP protocol. It is not open source...
JDK1.2引入最有争议性的改变是将集合类默认为不是Thread安全性的。
一、Collection Class的概述
1. 具有Threadsafe 的Collection Class:
java.util.Vector(List) 列表集合,通过索引操作。
java.util.Stack(List) 继承自Vector,提供LIFO的顺序操作push进入,pop出元素。
ja...
分类:
编程语言 时间:
2014-06-18 08:07:54
阅读次数:
262
在练习spring项目的过程中,出现了如下异常信息:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.context.support.AbstractApplicationContext.(Abstrac...
分类:
编程语言 时间:
2014-06-18 07:15:20
阅读次数:
236
vector容器是最简单的顺序容器,其使用方法类似于数组,实际上vector的底层实现就是采用动态数组。在编写程序的过程中,常常会变量容器中的元素,那么如何遍历这些元素呢?本文给出三种遍历方法。...
分类:
其他好文 时间:
2014-06-18 06:11:44
阅读次数:
438
一、Git的特性
Speed 速度(git是用c语言写的。一般都是提交到本地)
Simple design
Strong support for non-linear development (thousands of parallel branches)(强有力的支持非线性开发)
Fully distributed(分布式)
Able to handle large projects...
分类:
其他好文 时间:
2014-06-17 21:42:13
阅读次数:
272
rsyslog服务端配置centos6.4x64系统系统自带rsyslog5.8版本rsyslog是一个syslogd的多线程增强版。现在Fedora和Ubuntu,rhel6默认的日志系统都是rsyslog了rsyslog负责写入日志,logrotate负责备份和删除旧日志,以及更新日志文件####################################首先部署好lam..
分类:
其他好文 时间:
2014-06-17 16:56:50
阅读次数:
365
/*容器做参数*/voidfunc(vector<int>&vecTest){for(inti=0;i<10;i++)vecTest.push_back(i);}
分类:
其他好文 时间:
2014-06-17 16:52:17
阅读次数:
241