-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClubManager.h
36 lines (30 loc) · 888 Bytes
/
ClubManager.h
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
#ifndef CLUBMANAGER_H
#define CLUBMANAGER_H
#include "Member.h"
#include "Club.h"
#include <string>
class ClubManager {
public:
ClubManager();
~ClubManager();
void addMember(const Member& member);
void removeMember(int memberId);
void addClub(const Club& club);
void removeClub(const std::string& clubName);
void clearAllMembers();
void clearAllClubs();
void displayMembers() const;
Member getMember(int id) const;
int getMemberCount() const { return memberCount; }
const Member* getMembers() const { return members; }
const Club* getClubs() const { return clubs; }
int getClubCount() const { return clubCount; }
private:
static const int MAX_MEMBERS = 100;
static const int MAX_CLUBS = 50;
Member members[MAX_MEMBERS];
Club clubs[MAX_CLUBS];
int memberCount;
int clubCount;
};
#endif // CLUBMANAGER_H