How do you do make a Permanent Reset Code?
I am making a petrol pump for my coursework and i need to a code to reset the pump once someone has used it.
I have got it to reset when someone puts the pump down however
when it is used again the old cost and the old petrol dispensed is added to the new one
Please can you help me make a permanent reset code?
Re: How do you do make a Permanent Reset Code?
You will, no doubt have a couple of variables that hold the values of Cost and amount dispenced. You should explicitly set them to zero when the pump is 'picked up' and about to start dispensing. Perhaps a glimpse at your code would help
Re: How do you do make a Permanent Reset Code?
ok thanks
i will put some of my code on :thumb: