update filenames

This commit is contained in:
2021-01-08 17:17:32 +01:00
parent 2f9f32e50e
commit 6485a3b3d6
6 changed files with 33 additions and 34 deletions

View File

@@ -0,0 +1,24 @@
#include "Stack.h"
#include "Node.h"
#include <iostream>
#include<sstream>
Stack::Stack(std::string _name){
first = Node::Dummy();
first->next = Node::Dummy();
}
bool Stack::push(int element) { return false; }
bool Stack::pop(int element) { return false; }
bool Stack::size(int element) { return false; }
std::string Stack::print_stack(){
Node* c = this->first->next;
std::stringstream ss;
while (!c->is_dummy()) {
ss << c->get_data() << " ";
c = c->next;
}
return ss.str();
}