1. map的erase函数使用
这里首先要注意,C++针对map的erase函数有不同的函数原型,这往往是出现问题的关键所在。根据参考文献1: 在C++98中:(1) void erase
(iterator position);(2)size_type erase (const key_type...
分类:
其他好文 时间:
2014-05-26 23:52:50
阅读次数:
412
1,项目属性选择Unicode;2,添加#include
;3,所有的""转换成_T("");4,看具体代码:for( std::vector::iterator
iterator=service.m_tDeviceList.begin(); iterator!=serv...
分类:
其他好文 时间:
2014-05-26 23:41:29
阅读次数:
522
Original
Link:http://www.ehow.com/how_4812793_password-complexity-requirements-windows-xp.html#ixzz32PEZAbOnWhen
you create a new account in Windows X...
代码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
Analogous to change in technology and the
ever-increasing pollutants in the atmosphere, home air filtering technology has
undergone a massive change. ...
分类:
其他好文 时间:
2014-05-26 16:36:00
阅读次数:
288
集合类说明及区别Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口
Collection是最基本的集合接口,一个Collection代表一组O....
分类:
编程语言 时间:
2014-05-26 09:32:53
阅读次数:
258
第1章
容器第1条:慎重选择容器类型。标准STL序列容器:vector、string、deque和list。标准STL关联容器:set、multiset、map和multimap。非标准序列容器slist和rope。slist是一个单向链表,rope本质上是一“重型”string。非标准的关联容器h...
分类:
编程语言 时间:
2014-05-26 08:14:34
阅读次数:
384
有序容器:vector[连续内存]
拥有一段连续的地址空间,首地址不变,按顺序存放,拥有高效的随机存储和访问,毕竟有迭代器作为序号。
从尾部插入和删除很快,其他地方插入和删除操作的时间复杂度就高喽,需要大范围内存的复制粘贴,效率低下,就像数组一样.有空间预留的特点,操作起来消耗内存空间。capa.....
分类:
其他好文 时间:
2014-05-26 07:10:59
阅读次数:
244
这里不讲vsftpd的基本配置,网上教程已经太多了。这里只说seLinux的问题。日前在CentOS6.5中安装了vsftpd,按照网上搜索的教程,配置好/etc/vsftpd/vsftpd.conf,重新启动后,登录实验,又出现了著名的不能设置主目录错误:500
OOPS: cannot chan...
分类:
系统相关 时间:
2014-05-26 06:40:58
阅读次数:
468
ImLazy是个人使用的小程序,抽时间在公司写了个ruby版本,未完成equals_verb#
To change this template, choose Tools | Templates# and open the template in the
editor.require "SDK/ve...
分类:
其他好文 时间:
2014-05-24 12:51:59
阅读次数:
496