Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Exam 1 / ex2 / Book.h
blob: 849d0bdd10626dc9117e60f14cf940e2f36af3cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Book {
	char name[100];
	char author[100];
	unsigned count; // тираж

public:
	Book();
	Book(const char* name, const char* author, unsigned count);

	const char* get_name() const;
	void set_name(const char* newName);

	const char* get_author() const;
	void set_author(const char* newAuthor);

	unsigned get_count() const;
	void set_count(unsigned newCount);
};