| 4 | #include "CerealPack.h" // For the CerealPack class |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | CerealPack cornflakes{ 8.0, 3.0, 10.0, "Cornflakes" }; |
| 9 | |
| 10 | std::cout << "cornflakes volume is " << cornflakes.volume() << std::endl |
| 11 | << "cornflakes weight is " << cornflakes.getWeight() << std::endl; |
| 12 | } |