
STL
gamecreating
这个作者很懒,什么都没留下…
展开
-
STL::accumulate() 介绍 + system("pause")
accumulate : 计算给定区间中值的累加和。Neal:accumulate() 可以传入指针,也可传入 iterator.需要指定初值。默认是计算和,也可以自己指定函数,就像我在代码里加的那样。Code:// Vector_Learning.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//#include转载 2010-04-11 19:50:00 · 1860 阅读 · 0 评论 -
STL::copy 用法介绍
copy : Assigns the values of elements from a source range to a destination range, iterating through the source sequence of elements and assigning them new positions in a forward direction.将容器中的元素从一个区间转载 2010-04-11 20:27:00 · 3992 阅读 · 0 评论