16 lines
224 B
C++
16 lines
224 B
C++
#pragma once
|
|
#include <stack>
|
|
namespace yaha {
|
|
class CQueue {
|
|
public:
|
|
CQueue() {
|
|
}
|
|
|
|
void append_tail(int value);
|
|
int delete_head();
|
|
|
|
private:
|
|
std::stack<int> _stk_tail;
|
|
std::stack<int> _stk_head;
|
|
};
|
|
} |