![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
monsterXD
IT技术宅
展开
-
【2013微软校招面试题】设计一个栈,当栈满时,新入栈的元素循环回第一个元素的位置将其覆盖
问题,如标题所示~ 解题:见代码如下 #include #include using namespace std;class RecycleStack{public: RecycleStack(int MaxSize):maxSize(MaxSize),curSize(0),tail(0) { s_arr = new int[maxSize];原创 2012-12-27 17:14:44 · 1132 阅读 · 2 评论 -
STL容器简介
STL的容器可以分为以下几个大类: 一:序列容器, 有vector, list, deque, string.二 : 关联容器, 有set, multiset, map, mulmap, hash_set, hash_map, hash_multiset, hash_multimap三: 其他的杂项: stack, queue, valarray, bitset转载 2013-08-11 16:16:15 · 541 阅读 · 0 评论