摘要: STL中的list就是一双向链表,可高效地进行插入删除元素。现总结一下它的操作。文中所用到两个list对象c1,c2分别有元素c1(10,20,30)c2(40,50,60)。还有一个list<int>::iterator citer用来指向c1或c2元素。list对象的声明构造():A. list<int>c0; //空链表B. list<int>c1(3)... 阅读全文
posted @ 2009-11-08 21:10 大Vin 阅读(359) 评论(0) 推荐(0) 编辑
摘要: [代码]Note:The first member function replaces the sequence controlled by *this with the sequence [First, Last). The second member function replaces the sequence controlled by *this with a repetition of ... 阅读全文
posted @ 2009-11-08 20:11 大Vin 阅读(524) 评论(0) 推荐(0) 编辑