摘要: 转:http://blog.sina.com.cn/s/blog_686d0fb001012tsg.html 我们需要一个结构体和几个函数。这些函数和结构体在的头文件中,结构体为struct _finddata_t ,函数为_findfirst、_findnext和_fineclose。 首先讲这个结构体吧~ struct _finddata_t ,这个结构体是用来存储文件各种信息的。 大... 阅读全文
posted @ 2013-09-24 16:44 lc_cnblog 阅读(822) 评论(0) 推荐(0) 编辑
摘要: #include template ForwardIt remove( ForwardIt first, ForwardIt last, const T& value ); 在容器的[first , last) 区间里删除和value 值相等的元素。但是删除机制是将用value后面的值去覆盖value,未被删除的元素整体前移,相对位置不变,此时容器大小也不变。返回的迭代器到容器末尾的... 阅读全文
posted @ 2013-09-24 15:42 lc_cnblog 阅读(2078) 评论(0) 推荐(0) 编辑