Posted 30 January 2013 - 12:57 PM
So what I am creating is a button press calculator, I have all of the things i need to write everything to the screen but what i can not figure out is how to do the operations for the calculator. Currently what I am doing is I have a variable that stores the things that were written to the screen and it stores it in a variable then sets itself back to nothing, but then I also need to use this same variable for storing in a second variable which later gets used to do the operation of the 2 variables but what ends up happening is the first variable loses itself and becomes nothing and all it leaves me with is the last variable.
Here's my code in its current "not" working state if you would like to check it out and give me a hand : http://pastebin.com/EeJVNaga
And sorry about the way that the spacing is, it didnt copy over exactly right with the spacing.
Also sorry if my wording above is confusing, but looking at the code should hopefully clear it up for you.
Here's my code in its current "not" working state if you would like to check it out and give me a hand : http://pastebin.com/EeJVNaga
And sorry about the way that the spacing is, it didnt copy over exactly right with the spacing.
Also sorry if my wording above is confusing, but looking at the code should hopefully clear it up for you.