摘要: 两栈共享空间:使用一个数组来存储两个栈,让一个栈的栈底为该数组的始端,另一个栈的栈底为该数组的末端,两个栈从各自的端点向中间延伸。 const int Stack_Size=100; template <class T> class BothStack { public: BothStack( ); 阅读全文
posted @ 2021-09-22 20:17 zrswheart 阅读(57) 评论(0) 推荐(0) 编辑