-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.h
More file actions
32 lines (31 loc) · 834 Bytes
/
Student.h
File metadata and controls
32 lines (31 loc) · 834 Bytes
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
#pragma once
#ifndef __Student_H
#define __Student_H
#include <string>
#include <iostream>
#include "Course.h"
class Student {
public:
Student(const string fName = "", const string lName = "", const int id = 0);
Student(const Student& sToCopy);
~Student();
void operator=(const Student& right);
int getStudentId() const;
string getFirstName() const;
string getLastName() const;
int getNoOfCourses() const;
Course* getCourses() const;
bool addCourse(const int courseId, const string title);
bool removeCourses();
bool withdrawCourse(const int courseId);
//void sortStudents(Student*& students, const int size);
friend ostream& operator<<(ostream& out, const Student& s);
private:
string firstName;
int studentId;
string lastName;
Course* courses;
int size;
int noOfCourses;
};
#endif