|
|
~/cs2020c$ runprog2.exe Enter the first drink, Q to quit: Mountain Dew Enter the price: .75 Enter the quantity: 4 Enter the next drink, Q to quit: Sunkist Enter the price: .80 Enter the quantity: 6 Enter the next drink, Q to quit: Q 1) Mountain Dew 0.75 2) Sunkist 0.80 3) Exit Choose one: 1 Enter an amount of money: .95 Thump, thump, thump, splat! Enjoy your beverage! Change calculated: 0.20 Your change, 0.20 has just dropped into the Change Dispenser. There are 3 drinks of that type left. 1) Mountain Dew 0.75 2) Sunkist 0.80 3) Exit Choose one: 3 Total earnings: $0.75 |
|
|
1>prog 2.cpp(39): error C2562: 'fillMachine' : 'void' function returning a value 1> prog 2.cpp(13) : see declaration of 'fillMachine' 1>prog 2.cpp(47): error C2562: 'fillMachine' : 'void' function returning a value 1> prog 2.cpp(13) : see declaration of 'fillMachine' 1> 1>Build FAILED. |