Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #pragma once
  2. #include<string>
  3. #include<iostream>
  4. #include<iomanip>
  5.  
  6. using namespace std;
  7.  
  8. extern double dGlobaleZeit; //globale zeit aus main zur synchronisation
  9.  
  10. class Fahrzeug :
  11. {
  12. public:
  13. //Konstruktoren
  14. Fahrzeug(void);
  15. Fahrzeug(string sName);
  16. Fahrzeug(string sName, double dMaxGeschwindigkeit);
  17.  
  18. //Destruktor
  19. virtual ~Fahrzeug(void);
  20.  
  21. //Funktionen
  22. virtual void vAusgabe();
  23. virtual void vAbfertigung();
  24. virtual double dTanken(double dMenge=0);
  25. virtual double dGeschwindigkeit();
  26. virtual ostream& ostreamAusgabe(ostream& out);
  27. bool operator<(const Fahrzeug& Fzg);
  28. Fahrzeug& operator=(const Fahrzeug&);
  29.  
  30. protected:
  31. //Variablen
  32. double p_dMaxGeschwindigkeit;
  33. double p_dGesamtStrecke;
  34. double p_dGesamtZeit;
  35. double p_dZeit;
  36. double dMenge;
  37.  
  38. private:
  39. //Variablen:
  40. string p_sName;
  41. int p_iID;
  42. static int p_iMaxID;
  43.  
  44.  
  45. //Funktionen:
  46. Fahrzeug(const Fahrzeug&); //Copykonstruktor
  47. void vInitialisierung();
  48. };
  49.  
  50. ostream& operator<<(ostream& out, Fahrzeug& Fzg);
Add Comment
Please, Sign In to add comment