Project:PizzaPrinter: Difference between revisions
From London Hackspace Wiki
→layers
(→layers) |
|||
Line 138: | Line 138: | ||
int iPizzaID = pz.id(); | int iPizzaID = pz.id(); | ||
==== | ==== toppings ==== | ||
Returns string array with canonical pizza | Returns string array with canonical pizza toppings. | ||
Pizza pz = new Pizza(); | Pizza pz = new Pizza(); | ||
string arr[] = pz. | string arr[] = pz.toppings(); | ||
for(int i=0; i<arr.size(); i++) | for(int i=0; i<arr.size(); i++) | ||
print "Pizza | print "Pizza topping " + i + " = " + arr[i] + "\n"; | ||
==== add_layer ==== | ==== add_layer ==== |