Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- class Shop
- {
- string name;
- string adress;
- string month;
- int year_of_foundation, number;
- float sumProfit;
- sale ar[12] = { { "January", 0 }, { "February", 0 }, { "March", 0 }, { "April", 0 }, { "May", 0 }, { "June", 0 },
- { "July", 0 }, { "August", 0 }, { "September", 0 }, {"October", 0}, { "November", 0 }, { "December", 0 } };
- public:
- Shop();
- Shop(string name, string adress, int year, int number, float profit);
- ~Shop();
- void serialize();
- void serialize(string sFilename);
- void deserialize();
- void deserialize(string sFilename);
- void SetName(string name);
- string GetName();
- void SetAdress(string adress);
- string GetAdress();
- void SetYear(int year);
- int GetYear();
- void SetNumber(int number);
- int GetNumber();
- void setShop(string name, string adress, int year, int number);
- void monthlySales(string month, float profit);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement