mirror of
https://github.com/13hannes11/UU_la_parallel_programming_practical_assignments.git
synced 2024-09-04 00:50:58 +02:00
fix methods pop push, size
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
Reference in New Issue
Block a user