For my vb class in high school I have to make a calculator with 0-9, +,-,*,/,=, the decimal point and enter.....if u have any suggestions please hook me up...thanks...i also need a reverse polish notation calculator.....thanks
Printable View
For my vb class in high school I have to make a calculator with 0-9, +,-,*,/,=, the decimal point and enter.....if u have any suggestions please hook me up...thanks...i also need a reverse polish notation calculator.....thanks
i don't have a clue what u just said, but u could probably find what u're looking for at...
www.planetsourcecode.com
incase ur wondering, if u own the MS Visual Studio CD, a calc project comes on the CD as an example! use that
Don't try to throw him off :D
My advice is to do it yourself as it is a good exercise in programming. Try storing an array with all of the buttons pressed, then add your button to the queue of buttons and calculate it there!
EG.
Pressed 1 | Display: 1
Pressed 0 | Display: 10
Pressed 0 | Display: 100
Pressed + | Display: 0
Pressed 1 | Display: 1
Pressed = | Display: 101
Also have the display in memory. This will allow you just not to display the stored number when pressing an "extended" button, eg. +, so that you can just calculate it after.