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.
26 lines
357 B
26 lines
357 B
#include "train.hpp"
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <list>
|
|
|
|
using namespace std;
|
|
|
|
Train::Train(string nom)
|
|
:nom{nom}
|
|
{}
|
|
|
|
int Train::ajouter(Wagon leWagon) {
|
|
lesWagons->push_back(leWagon);
|
|
return 0;
|
|
}
|
|
|
|
int Train::enlever(Wagon leWagon) {
|
|
lesWagons->remove(leWagon);
|
|
return 0;
|
|
}
|
|
|
|
Train::~Train() {
|
|
delete lesWagons;
|
|
}
|
|
|