aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise08/Administrator.h
blob: c0f9975ea367064336171854e833b2eaea22d2ce (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
#pragma once
#include "Moderator.h"

class Administrator : public Moderator {
	int* arr;
	unsigned size;
	unsigned allocated;

	void resize();

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

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

	void AddID(int value);
	void RemoveID(int value);
};