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;
}
bool Stack::push(int element) { return false; }
bool Stack::pop(int element) { return false; }
bool Stack::size(int element) { return false; }
void Stack::push(int element) { return; }
int Stack::pop() { return 0; }
void Stack::size() { return 0; }
std::string Stack::print_stack(){
Node* c = this->first->next;

View File

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