names of sets are now displayed properly

This commit is contained in:
2021-01-01 18:06:04 +01:00
parent 03d1da6e22
commit 4c9ad7e81e
5 changed files with 11 additions and 7 deletions

View File

@@ -4,16 +4,20 @@
class Set {
protected:
Set();
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(){
Set::Set(std::string _name){
name = _name;
first = Node::Dummy();
Node* last = Node::Dummy();
first->next = last;
}
}