-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent.h
40 lines (32 loc) · 911 Bytes
/
Student.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
//
// Student.hpp
//
#ifndef Student_h
#define Student_h
#include <iostream>
#include <string>
#include "User.h"
#include "Reader.h"
#include "Copy.h"
#include "Book.h"
#include <vector>
#include <list>
#include <string>
using namespace std;
class Student: public Reader {
public:
// constructors
Student();
Student(string tempusername, string temppassword, int tempnumcopies, list<Copy> tempcopiesborrowed, int tempnumbooks, list<Book> tempbooksreserved, int tempnumpenalties);
Student(Reader);
// print student info
void printstudent();
static void printstudents(list<Student>& mystudents);
// find student based on username
bool operator==(const Student& rhs);
// add copy to user's list of copies
void addstudentcopyborrowed(Copy);
private:
int maxlength;
};
#endif /* Student_h */