会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Programming is amazing
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
STL
STL中list的使用
摘要: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
阅读(370)
评论(0)
推荐(0)
list::assign
摘要:[代码]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
阅读(530)
评论(0)
推荐(0)
公告