#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"); // Add a student to course1

  Course course2(course1); // Create course2 as a copy of course1
  course2.addStudent("Lisa Ma"); // Add a student to course2

  cout << "students in course1: ";
  printStudent(course1.getStudents(), course1.getNumberOfStudents());
  cout << endl;

  cout << "students in course2: ";
  printStudent(course2.getStudents(), course2.getNumberOfStudents());
  cout << endl;

  return 0;
}