add header file for set

This commit is contained in:
2021-01-02 16:10:06 +01:00
parent 004e7a9cd6
commit a2b836f592
8 changed files with 25 additions and 27 deletions

View File

@@ -1,19 +1,6 @@
#pragma once
#include "Set.h"
#include "Node.h"
class Set {
protected:
std::string name;
Set(std::string _name);
Node* first;
public:
bool add(int element) { return false; };
bool rmv(int element) { return false; };
bool ctn(int element) { return false; };
std::string get_name() { return name; };
};
Set::Set(std::string _name){
name = _name;
first = Node::Dummy();
@@ -21,3 +8,7 @@ Set::Set(std::string _name){
first->next = last;
}
bool Set::add(int element) { return false; }
bool Set::rmv(int element) { return false; }
bool Set::ctn(int element) { return false; }
std::string Set::get_name() { return name; }