-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection.h
47 lines (42 loc) · 1.06 KB
/
section.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
45
46
#pragma once
//#include"state.h"
//#include "course.h"
#include"student.h"
#include<string>
#include<vector>
#include"subject.h"
#include<queue>
class register_close;
class state;
class course;
class student;
class section_full;
class section :public subject
{
char title;
string room;
int total_seats;
course* c;
state* registration_stat;
vector<student> registered_students;//translates into the registration table
public:
section();
section(char t, string r, int t_seats,course* course);
void change_reg_state(state* rs);
int register_section(student &s);
int register_student(student& s);
bool add_student_in_waiting(student& s);
bool availability();
void PrintSection();
bool removecourse(student& s);
bool remove_student(student& s);
void printRegisteredStudents(string code);
void AddEvaluation(string code, int w, int assign, int totalmarks);
void AddMarks(string code, int assign);
void AssignGrades(string code, char sec);
void viewMarksSheet(string code);
bool withdraw_course(student& s);
void notify();
char get_title();
friend class System;
};