-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCourse.cpp
More file actions
25 lines (19 loc) · 713 Bytes
/
Course.cpp
File metadata and controls
25 lines (19 loc) · 713 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
#include "stdafx.h"
#include <iostream>
#include "Course.h"
#include "Student.h"
#include "Teacher.h"
using namespace std;
Course::Course() {
Student *student1 = new Student("Bob", "Andrews", "343 Hill Street", "San Fransisco", 6508891234, 23);
Student *student2 = new Student("John", "Doe", "654 Blueberry Road", "San Jose", 9874561238, 21);
Student *student3 = new Student("Jane", "Doe", "347 Mountain Way", "Oakland", 7896541238, 21);
Teacher *prof = new Teacher("John", "Smith", "555 Straight Lane", "San Fransisco", 6509872345, 43);
}
Course::~Course() {
}
Course::Course(string inputname) {
coursename = inputname;
}
void Course::DisplayName() {
cout << "Name of course: " << coursename << endl;