aboutsummaryrefslogtreecommitdiff
path: root/week07/Exercise4.h
blob: c5dc5c981a04ca730913f61c1b953d71b68000ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Street {
	char* name;
	int number;

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

public:
	Street(const char* name, int number);
	void Print();

	Street();
	~Street();
	Street(const Street& other);
	Street& operator=(const Street& other);
	Street(Street&& other);
	Street& operator=(Street&& other);

	void SaveText(const char* fileName);
	void LoadText(const char* fileName);

	void SaveBinary(const char* fileName);
	void LoadBinary(const char* fileName);
};