Advertisement
Guest User

Untitled

a guest
May 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. using namespace std;
  2.  
  3. class Billet
  4. {
  5.     private:
  6.         string villeArrivee, villeDepart;
  7.         double distance, prixAuKm;
  8.  
  9.     public:
  10.         Billet(string villeD="", string villeA="", double d=0, double p=0);
  11.         string getVilleDepart();
  12.         string getVilleArrivee();
  13.         double getDistance();
  14.         double getPrixAuKm();
  15.         virtual double getPrixTotal();
  16.         void setVilleDepart(string a);
  17.         void setVilleArrivee(string b);
  18.         void setDistance(double c);
  19.         void setPrixAuKm(double d);
  20.         virtual void saisir();
  21.         void affichage();
  22.         bool compItineraire(Billet b);
  23.         int compPrixBillet(Billet b);
  24.         void affichage(ostream &out);
  25. };
  26.  
  27. double saisieD();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement