Copy 方法 和 ostream 迭代器
摘要:
目录头文件#include templateoutputIterator copy(InputIterator beg,InputIterator end, outputIterator beg)从原型上看主要作用是将一个容器的迭代器拷贝给另外一个容器的迭代器示例代码:#include #include #include #include using namespace std;int main() { int intArray[] = {0,1,2,3,4,5,6,7,8,9}; vector vecList(10); copy(intArray,intArray+10,vecList.b. 阅读全文
posted @ 2014-04-12 14:00
Yours风之恋
阅读(183)
评论(0)
推荐(0)
浙公网安备 33010602011771号