main.cpp 596 B

12345678910111213141516171819202122
  1. #include <iostream>
  2. #include "coffeeMachine.hpp"
  3. int main()
  4. {
  5. int money = 100;
  6. CoffeMachine coffeMachine;
  7. Cup *cupPtr = coffeMachine.orderCoffee(CoffeMachine::CoffeeType::latte, money);
  8. cupPtr->printCup();
  9. Cup *cupPtr2 = coffeMachine.orderCoffee(CoffeMachine::CoffeeType::capuchino, money);
  10. cupPtr2->printCup();
  11. Cup *cupPtr3 = coffeMachine.orderCoffee(CoffeMachine::CoffeeType::esspresso, money);
  12. cupPtr3->printCup();
  13. Cup *cupPtr4 = coffeMachine.orderCoffee(CoffeMachine::CoffeeType::latte, money);
  14. cupPtr4->printCup();
  15. std::cout<<coffeMachine.getStatus()<<std::endl;
  16. return 0;
  17. }