摘要: c. 用栈实现队列 class MyQueue { public: stack<int> a,b; MyQueue() { } void push(int x) { while (!a.empty()) b.push(a.top()), a.pop(); a.push(x); while (!b.e 阅读全文
posted @ 2021-02-03 20:40 童年の波鞋 阅读(91) 评论(0) 推荐(0) 编辑