aboutsummaryrefslogtreecommitdiff
path: root/week08/Exercise1.h
blob: 1bd91d7b0256d0c01a49dcabeb7d23fdf7018f3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class StreetList {
	char **streetNames; // динамично-заделен масив от динамично-заделени низове
	int lastUnused;
	int allocated;

	void free();
	void copyFrom(const StreetList& other);

	void resize();

public:
	StreetList();
	~StreetList();
	StreetList(const StreetList& other);
	StreetList& operator=(const StreetList& other);
	StreetList(StreetList&& other);
	StreetList& operator=(StreetList&& other);

	void Add(const char* newString);
};