modified stack to have an operations queue attached

This commit is contained in:
2021-01-10 15:14:30 +01:00
parent e2d1e726f0
commit 7e89506f47
2 changed files with 5 additions and 3 deletions

View File

@@ -4,9 +4,10 @@
#include <iostream>
#include<sstream>
Stack::Stack(std::string _name){
Stack::Stack(ADTOperationQueue * queue){
first = Node::Dummy();
first->next = Node::Dummy();
op_queue = queue;
}
bool Stack::push(int element) { return false; }

View File

@@ -1,11 +1,12 @@
#pragma once
#include "Node.h"
#include "ADT_Stack.h"
class Stack {
protected:
std::string name;
Stack(std::string _name);
ADTOperationQueue * op_queue;
Stack(ADTOperationQueue * queue);
Node* first;
public:
bool push(int element);