Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- using namespace std;
- #ifndef myRentalFunctions
- #define myRentalFunctions
- class RentalCar {
- public:
- void print(class RentalCar[]);
- int EstimateCost(int days, class RentalCar[]);
- RentalCar() { }
- RentalCar(int m_year, char m_make[255], char m_model[255], float price, bool m_available) {
- m_year = 0;
- *m_make;
- *m_model;
- price = 0;
- m_available = 0;
- }
- private:
- int m_year;
- char m_make[255], m_model[255];
- float price;
- bool m_available;
- };
- struct RentalAgency{
- char name[255];
- int zipcode[5];
- RentalCar * inventory[5];
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement