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;
|
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;
|
||||||
|
|||||||
@@ -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();
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user