-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRegistrationList.h
44 lines (34 loc) · 1.08 KB
/
RegistrationList.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
37
38
39
40
41
42
43
44
#include <iostream>
#include <stdlib.h>
#include <vector>
using namespace std;
#ifndef REGISTRATIONLIST_H
#define REGISTRATIONLIST_H
#include "Registration.h"
class RegistrationList {
private:
string crn;
string bNumber;
int capacity;
int currentQuantity;
Registration* allRegistrations; // list of all students in a course
public:
RegistrationList();
RegistrationList(string newCRN, string newBNumber);
~RegistrationList();
void addReg(Registration addReg);
void dropReg(Registration dropReg);
void cancelReg(string cancelReg);
void resizeArray();
vector<string> returnBnum(string newCRN);
vector<string> returnCrn(string newBNumber);
void printAdd();
void printDrop(Registration dropReg);
void printCancel(string cancelReg);
void searchByCRN(string newCRN);
bool check(Registration orgReg, Registration newReg);
bool checkRegExists(Registration newReg);
string getCRN();
string getBNumber();
};
#endif