Results 1 to 3 of 3

Thread: How do you do make a Permanent Reset Code?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    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.

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width