2015年3月18日

摘要: 第一次看到stack,以为它是一个和vector同等地位的容器,其实不是官方解释:stacks are a type of container adaptor, specifically designed to a LIFO context(last-in-first-out), where ele... 阅读全文
posted @ 2015-03-18 17:20 搬砖欢乐多 阅读(184) 评论(0) 推荐(0)
 
摘要: 所谓容器,就是一个装东西的盒子,在c++中,我们把装的东西叫做“元素”而顺序容器,就是说这些东西是有顺序的,你装进去是什么顺序,它们在里面就是什么顺序。c++中的顺序容器一共有这么几种:vector可变大小数组deque双端队列list双向链表forward_list单向链表array固定数组大小s... 阅读全文
posted @ 2015-03-18 17:10 搬砖欢乐多 阅读(380) 评论(0) 推荐(0)