Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*************************************************************************
- TrajetSimple - description
- -------------------
- début : 20/11/2019
- copyright : (C) 2019 par Fabien NARBOUX & Nicolas TROUIN
- e-mail : fabien.narboux@insa-lyon.fr & nicolas.trouin@insa-lyon.fr
- *************************************************************************/
- //---------- Réalisation de la classe <TrajetSimple> (fichier TrajetSimple.cpp) ------------
- //---------------------------------------------------------------- INCLUDE
- //-------------------------------------------------------- Include système
- using namespace std;
- #include <iostream>
- //------------------------------------------------------ Include personnel
- #include "TrajetSimple.h"
- //------------------------------------------------------------- Constantes
- //----------------------------------------------------------------- PUBLIC
- //----------------------------------------------------- Méthodes publiques
- void TrajetSimple::Afficher () const
- // Algorithme :
- //
- {
- cout << "Ville de départ : " << villeDep << endl;
- cout << "Ville d'arrivé : " << villeArr << endl;
- cout << "Moyen de Transport : " << moyenTransport << endl;
- } //----- Fin de Afficher
- //-------------------------------------------- Constructeurs - destructeur
- //Xxx::Xxx ( const Xxx & unXxx )
- // Algorithme :
- //
- //{
- //#ifdef MAP
- // cout << "Appel au constructeur de copie de <Xxx>" << endl;
- //#endif
- //} //----- Fin de Xxx (constructeur de copie)
- TrajetSimple::TrajetSimple (const char* uneVilleDep, const char* uneVilleArr, const MoyenTransport unMoyenTransport)
- :Trajet(uneVilleDep,uneVilleArr),moyenTransport(unMoyenTransport)
- // Algorithme :
- //
- {
- #ifdef MAP
- cout << "Appel au constructeur de <TrajetSimple>" << endl;
- #endif
- } //----- Fin de TrajetSimple
- TrajetSimple::~TrajetSimple ( )
- // Algorithme :
- //
- {
- #ifdef MAP
- cout << "Appel au destructeur de <TrajetSimple>" << endl;
- #endif
- } //----- Fin de ~TrajetSimple
- //------------------------------------------------------------------ PRIVE
- //----------------------------------------------------- Méthodes protégées
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement