Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making a calculator [HELP]
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dudeguy




PostPosted: 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,
Sponsor
Sponsor
Sponsor
sponsor
isaiahk9




PostPosted: 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?
Sean




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: