摘要:
#include<iostream>#include<stack>using namespace std; template<typename T>struct queue{ stack<T> s1; stack<T> s2; void push_queue(const T& val); void 阅读全文
摘要:
#include<iostream>#include<stack>using namespace std; struct queue{ stack<int> s1; stack<int> s2; void push_queue(int val);void pop_queue(); bool empt 阅读全文
摘要:
#include<iostream>#include<queue> using namespace std; struct stack{ queue<int> que1; queue<int> que2; static int STACK_EMPTY; void push_stack(int val 阅读全文