- Vending Machine Dev C 4
- Vending Machines Decatur Al
- Vending Machine Programming
- Vending Machine Dev C 2017
The vending machine C++ code has a problem.
Nov 30, 2013 C project: Array of structs,vending machine project, help me learn functions and removing global variables. Hi, I'm not trying to get spoonfed, but I'm aiming for guided help. Specifically, I've got a project, which is meant to model a vending machine and I have reasonable working code. Global Vending Group is the top vending distributor offering a wide range of New Vending Machines including Combo, Snack, Coffee, Cold and Frozen Food Vending Machines as well as Bill Changers. If you're looking to buy vending machines, you have found the right place!
Vending Machine Dev C 4
I wanted to call the 'tPrice' variable from the 'chocoSelect' function to 'insertCoin' function, but it does not work.
Same thing as for calling variables 'cChoice, qAMB, qSD, qCS, qCMB, currentTotal' from the 'chocoSelect' function to the 'dispenser' function.
Same thing as for calling variables 'cChoice, qAMB, qSD, qCS, qCMB, currentTotal' from the 'chocoSelect' function to the 'dispenser' function.
What should I include for the clrscr() to work?
- 2 Contributors
- forum 3 Replies
- 776 Views
- 21 Hours Discussion Span
- commentLatest Postby tinstaaflLatest Post
tinstaafl1,114
A couple of things I noticed:
Firstly, the compiler has to know how to find the functions before you call them, either have them before main in the file or declare them with prototypes.
Secondly, you're passing data to your functions without telling the function how to receive the data(line 223).
Vending Machines Decatur Al
Thirdly, you're trying to use the result of a void function in an assignment statement(line 167).
Vending Machine Programming
The only
clrscr()
function I know of for windows is in the obsolete 'conio.h', which is still supported by some compilers. I think the 'boost' library has a similar function. You can acheive similar results by writing 50 empty lines to the console.Vending Machine Dev C 2017
Edited by tinstaafl