You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
405 B

#include "passager.hpp"
#include "wagon.hpp"
using namespace std;
Passager::Passager(const string &nom, const string &prenom)
:nom{nom}, prenom{prenom}, wagonActuel{nullptr}
{}
Wagon* Passager::getWagonActuel() const {
return wagonActuel; ///// comme ça
}
ostream &operator<<(ostream &s, const Passager &p) {
s << "Passager : " << p.nom << " " << p.prenom << endl;
return s;
}