Making a calculator [HELP]
Author |
Message |
dudeguy
|
Posted: Wed May 28, 2008 3:30 pm Post subject: Making a calculator [HELP] |
|
|
Ok.. I've gotten my basic calculator with a GUI working..
Problem is after I have my number up and I press another one I get the resultant with the last pressed number at the end.
e.g.
5+3 = 8, press 7 and I get 87.
How do I reset this?
P.S. if this is to clarify anything I store this within a variable and just locate and use a put statement
Thanks, |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
isaiahk9
![](http://compsci.ca/v3/uploads/user_avatars/1465120414488e669e1f83a.jpg)
|
Posted: Wed May 28, 2008 3:33 pm Post subject: RE:Making a calculator [HELP] |
|
|
You need to reset your variables for numbers back to zero maybe? |
|
|
|
|
![](images/spacer.gif) |
Sean
![](http://compsci.ca/v3/uploads/user_avatars/47413941748406f441f83e.png)
|
Posted: Wed May 28, 2008 3:52 pm Post subject: Re: Making a calculator [HELP] |
|
|
Possibly cls the code so that it erases it when they hit the clear button.
We would need to see the code. |
|
|
|
|
![](images/spacer.gif) |
|
|