#include <iostream>
#include "CourseWithCustomCopyConstructor.h"
using namespace std;
void printStudent(const string names[], int size)
{
for (int i = 0; i < size; i++)
cout << names[i] << (i < size - 1 ? ", " : " ");
}
int main()
{
Course course1("C++ Programming", 10);
course1.addStudent("Peter Pan");
Course course2(course1);
course2.addStudent("Lisa Ma");
cout << "students in course1: ";
printStudent(course1.getStudents(), course1.getNumberOfStudents());
cout << endl;
cout << "students in course2: ";
printStudent(course2.getStudents(), course2.getNumberOfStudents());
cout << endl;
return 0;
}