#include "EPFLStudent.h"
#include "Professor.h"
#include "Sujet.h"
#include <iostream>
using namespace std;

EPFLStudent::EPFLStudent(string name){
    this->name = name;
}
void EPFLStudent::registerByProfForMasterThesis(Professor* p){
    listOfProfs.push_back(p);
    
}

void EPFLStudent::display(){
    cout << "Etudiant: "<< name << endl;
    cout << "Nom de mes profs:"<< endl;

    list<Professor*>::iterator the_iterator;
    the_iterator = listOfProfs.begin();
    while( the_iterator != listOfProfs.end() ) {
	cout << "Prof." << (*the_iterator)->getName() << ",";
	the_iterator++;
    }
    cout<<endl;
}


