Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.24 KB | None | 0 0
  1. /*************************************************************************
  2.                            TrajetSimple  -  description
  3.                              -------------------
  4.     début                : 20/11/2019
  5.     copyright            : (C) 2019 par Fabien NARBOUX & Nicolas TROUIN
  6.     e-mail               : fabien.narboux@insa-lyon.fr & nicolas.trouin@insa-lyon.fr
  7. *************************************************************************/
  8.  
  9. //---------- Réalisation de la classe <TrajetSimple> (fichier TrajetSimple.cpp) ------------
  10.  
  11. //---------------------------------------------------------------- INCLUDE
  12.  
  13. //-------------------------------------------------------- Include système
  14. using namespace std;
  15. #include <iostream>
  16.  
  17. //------------------------------------------------------ Include personnel
  18. #include "TrajetSimple.h"
  19.  
  20. //------------------------------------------------------------- Constantes
  21.  
  22. //----------------------------------------------------------------- PUBLIC
  23.  
  24. //----------------------------------------------------- Méthodes publiques
  25. void TrajetSimple::Afficher () const
  26. // Algorithme :
  27. //
  28. {
  29.   cout << "Ville de départ : " << villeDep << endl;
  30.   cout << "Ville d'arrivé : " << villeArr << endl;
  31.   cout << "Moyen de Transport : " << moyenTransport << endl;
  32. } //----- Fin de Afficher
  33.  
  34.  
  35. //-------------------------------------------- Constructeurs - destructeur
  36. //Xxx::Xxx ( const Xxx & unXxx )
  37. // Algorithme :
  38. //
  39. //{
  40. //#ifdef MAP
  41. //    cout << "Appel au constructeur de copie de <Xxx>" << endl;
  42. //#endif
  43. //} //----- Fin de Xxx (constructeur de copie)
  44.  
  45.  
  46. TrajetSimple::TrajetSimple (const char* uneVilleDep, const char* uneVilleArr, const MoyenTransport unMoyenTransport)
  47.   :Trajet(uneVilleDep,uneVilleArr),moyenTransport(unMoyenTransport)
  48. // Algorithme :
  49. //
  50. {
  51. #ifdef MAP
  52.     cout << "Appel au constructeur de <TrajetSimple>" << endl;
  53. #endif
  54. } //----- Fin de TrajetSimple
  55.  
  56.  
  57. TrajetSimple::~TrajetSimple ( )
  58. // Algorithme :
  59. //
  60. {
  61. #ifdef MAP
  62.     cout << "Appel au destructeur de <TrajetSimple>" << endl;
  63. #endif
  64. } //----- Fin de ~TrajetSimple
  65.  
  66.  
  67. //------------------------------------------------------------------ PRIVE
  68.  
  69. //----------------------------------------------------- Méthodes protégées
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement