摘要: 从标准输入设备输入一个个单词,然后字符逆序打印。 /* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * b 阅读全文
posted @ 2018-08-20 11:20 summer91 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 特殊容器,又称为容器适配器(Container Adapter),它们改造了标准STL容器,使之满足特殊的要求。 Stack堆栈 使用stack时,需包含头文件<stack> push() 将一个元素压入栈内 pop() 从栈内移除下一个元素,但是并不返回它 top() 返回栈内下一个元素,但并不移 阅读全文
posted @ 2018-08-20 10:10 summer91 阅读(327) 评论(0) 推荐(0) 编辑