-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlower.h
More file actions
37 lines (33 loc) · 738 Bytes
/
Flower.h
File metadata and controls
37 lines (33 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Berk Temel 22002675
//
#ifndef HW3_FLOWER_H
#define HW3_FLOWER_H
#include <string>
#include <iostream>
using namespace std;
class Flower{
public:
Flower();
Flower(string flowerName);
Flower(const Flower& aFlower);
~Flower();
bool isEmpty() const;
int getLength() const ;
bool add(string feature);
bool remove(string feature);
string printFlower() const;
bool featureExists(string feature);
string getName() const;
void deleteAllFeatures();
void deleteAndPrint();
private:
struct FeatureNode{
string feature;
FeatureNode* next;
};
int size;
string flowerName;
FeatureNode *head;
};
#endif //HW3_FLOWER_H