fix methods pop push, size

This commit is contained in:
2021-01-10 15:21:27 +01:00
parent 7e89506f47
commit 1e3c14ec51
2 changed files with 6 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ Stack::Stack(ADTOperationQueue * queue){
op_queue = queue; op_queue = queue;
} }
bool Stack::push(int element) { return false; } void Stack::push(int element) { return; }
bool Stack::pop(int element) { return false; } int Stack::pop() { return 0; }
bool Stack::size(int element) { return false; } void Stack::size() { return 0; }
std::string Stack::print_stack(){ std::string Stack::print_stack(){
Node* c = this->first->next; Node* c = this->first->next;

View File

@@ -9,8 +9,8 @@ class Stack {
Stack(ADTOperationQueue * queue); Stack(ADTOperationQueue * queue);
Node* first; Node* first;
public: public:
bool push(int element); void push(int element);
bool pop(int element); int pop();
bool size(int element); int size();
std::string print_stack(); std::string print_stack();
}; };