daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <fstream>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. #ifndef myRentalFunctions
  6. #define myRentalFunctions
  7.  
  8. class RentalCar {
  9.     public:
  10.         void print(class RentalCar[]);
  11.         int EstimateCost(int days, class RentalCar[]);
  12.         RentalCar() { }
  13.         RentalCar(int m_year, char m_make[255], char m_model[255], float price, bool m_available) {
  14.             m_year = 0;
  15.             *m_make;
  16.             *m_model;
  17.             price = 0;
  18.             m_available = 0;       
  19.         }
  20.     private:
  21.         int m_year;
  22.         char m_make[255], m_model[255];
  23.         float price;
  24.         bool m_available;
  25. };
  26.  
  27. struct RentalAgency{
  28.     char name[255];
  29.     int zipcode[5];
  30.     RentalCar * inventory[5];
  31. };
  32.  
  33.  
  34. #endif
RAW Paste Data
Top