摘要:
一、插入迭代器 1 /** 2 解释三种插入迭代器的区别。 3 区别在于插入的元素的位置不同: 4 back_inserter,使用push_back实现在容器末端插入。 5 front_inserter, 使用push_front实现在容器前端插入。 6 inserter,使用insert实现插入,它还带有第二个实参:指向插入起始位置的迭代器 7 */ 8 9 #include 10 #include 11 #include 12 #include 13 14 using namespace std;15 16 int main()17 {18 v... 阅读全文
posted @ 2013-09-15 18:13
可笑痴狂
阅读(409)
评论(0)
推荐(0)