Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ======================
- // main function
- // ======================
- #include <iostream>
- #include "order.h"
- using namespace std;
- int main()
- {
- // Variable declarations
- Order myOrder;
- Pizza cheesy;
- Pizza pepperoni;
- // Make some pizzas
- cheesy.setCheeseToppings(3);
- cheesy.setType(HANDTOSSED);
- pepperoni.setSize(LARGE);
- pepperoni.setPepperoniToppings(2);
- pepperoni.setType(PAN);
- // Add to the order
- myOrder.addPizza(cheesy);
- myOrder.addPizza(pepperoni);
- // Output order
- myOrder.outputOrder();
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement