-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCourse.cpp
More file actions
30 lines (26 loc) · 718 Bytes
/
Course.cpp
File metadata and controls
30 lines (26 loc) · 718 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
#include "Course.h"
Course::Course(int serial, string name, string type, double points, double hours, double grade, string additions)
{
this->serialNum = serial;
this->name = name;
this->type = type;
this->points = points;
this->hours = hours;
this->grade = grade;
this->additions = additions;
}
Course::~Course()
{
}
void Course::printCourse()
{
cout << "===== Course =====" << endl;
cout << "serial: " << this->serialNum <<endl;
cout << "name: " << this->name <<endl;
cout << "type: " << this->type <<endl;
cout << "points: " << this->points <<endl;
cout << "hours: " << this->hours <<endl;
cout << "grade: " << this->grade <<endl;
cout << "additions: " << this->additions <<endl;
cout <<endl;
}