-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOcourse.cpp
48 lines (34 loc) · 1.21 KB
/
Ocourse.cpp
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
47
48
//Filename : OCOURSE.CPP
//Description : Course Class Definition
#include <OPSCHOOL.H>
#include <OCOURSE.H>
#include <ODEPT.H>
#include <ODEPTRES.H>
#include <OCOURRES.H>
//------ Begin of function Course::normal_class_size -------//
int Course::normal_class_size() {
int deptId = department_array[department_recno]->department_id;
if ( teaching_method == DISTANCE_LEARN_COURSE )
return department_res[deptId]->max_dl_class_size;
else
return course_res.get_normal_class_size(department_res[deptId]->template_course_type, teaching_method);
}
//------ End function Course::normal_class_size -------//
//------ Begin of function Course::next_trimester -------//
void Course::next_trimester() {
reset_vars();
}
//------ End function Course::next_trimester -------//
//------ Begin of function Course::reset_vars -------//
void Course::reset_vars() {
is_closed = 0;
convention_student_count = 0;
//convention_student_distance_learner_count = 0;
distance_student_count = 0;
admission_denied_count = 0;
failure_count = 0;
outsourcing_credits = 0;
class_section_count = 0;
cur_section_student_count= 0;
}
//------ End function Course::reset_vars -------//