|
-
Jan 31st, 2008, 05:45 AM
#1
Thread Starter
New Member
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?
Last edited by Tomglass; Jan 31st, 2008 at 05:56 AM.
-
Jan 31st, 2008, 07:06 AM
#2
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
-
Jan 31st, 2008, 09:08 AM
#3
Thread Starter
New Member
Re: How do you do make a Permanent Reset Code?
ok thanks
i will put some of my code on
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|