摘要: http://www.cnblogs.com/gshlsh17/rase()方法是删除iterator指定的节点 但是要注意的是在执行完此函数的时候iterator也被销毁了 这样的话关于iterator的操作就会报错 以下是关于erase()方法的正确使用正确使用方法1 : std::list L... 阅读全文
posted @ 2015-10-24 14:17 贺大卫 阅读(1238) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/zxjyuan/archive/2010/01/06/1640092.html冒泡法:UsingdirectivesnamespaceBubbleSorter{publicclassBubbleSorter{publicvoidSort(int[]lis... 阅读全文
posted @ 2015-10-24 14:07 贺大卫 阅读(186) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/zxjyuan/archive/2010/01/06/1640136.html1.引言 万维网WWW(World Wide Web)是一个巨大的,分布全球的信息服务中心,正在以飞快的速度扩展。1998年WWW上拥有约3.5亿个文档[14],每天增加约1百... 阅读全文
posted @ 2015-10-24 14:06 贺大卫 阅读(914) 评论(0) 推荐(0)
摘要: http://www.searchtb.com/ 阅读全文
posted @ 2015-10-24 13:23 贺大卫 阅读(234) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/Purple_Xiapei/archive/2012/05/27/2520483.htmlSTL中mem_fun和mem_fun_ref的用法分类:C++2006-11-21 09:115244人阅读评论(8)收藏举报 怎么对容器中的所有对象都进行同一个... 阅读全文
posted @ 2015-10-24 13:20 贺大卫 阅读(194) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/Purple_Xiapei/archive/2012/05/10/2495003.html第一部分:基本概念及其它问答题1、关键字static的作用是什么?这个简单的问题很少有人能回答完全。在C语言中,关键字static有三个明显的作用:1). 在函数体... 阅读全文
posted @ 2015-10-24 13:19 贺大卫 阅读(986) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/Purple_Xiapei/archive/2012/05/11/2495336.html 1.new、delete、malloc、free关系 delete会调用对象的析构函数,和new对应free只会释放内存,new调用构造函数。malloc与fre 阅读全文
posted @ 2015-10-24 13:16 贺大卫 阅读(249) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/Purple_Xiapei/archive/2012/05/27/2520477.htmlAbstract之前在(原創) 如何使用for_each() algorithm? (C/C++) (STL)曾經討論過for_each(),不過當時功力尚淺,只談... 阅读全文
posted @ 2015-10-24 13:14 贺大卫 阅读(843) 评论(0) 推荐(0)