diff options
author | Oskar <[email protected]> | 2024-09-17 15:02:56 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-09-17 15:02:56 +0200 |
commit | d8d8f1c987f118843d44ea27ac516f8fe866ded4 (patch) | |
tree | 0489d8d0565c8941422358e52dc6394cbf03db86 /sales_data.hpp | |
parent | c640d847343b3d50e7716173141d63bd1cca265c (diff) |
more
Diffstat (limited to 'sales_data.hpp')
-rw-r--r-- | sales_data.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sales_data.hpp b/sales_data.hpp index cce4469..31929af 100644 --- a/sales_data.hpp +++ b/sales_data.hpp @@ -2,9 +2,15 @@ #define SALES_DATA_H #include <string> struct SalesData { + std::string isbn() const { return BookNo; } + SalesData &combine(const SalesData); + double avg_price() const; std::string BookNo; unsigned int UnitsSold = 0; double Revenue = 0.0; }; +SalesData add(const SalesData&, const SalesData&); +std::ostream &print(std::ostream&, const SalesData&); +std::istream &read(std::istream&, SalesData&); #endif |