Click to See Complete Forum and Search --> : I need a Calculator
opieisgod
Mar 12th, 2001, 12:37 PM
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
BitBlt
Mar 14th, 2001, 12:08 PM
i don't have a clue what u just said, but u could probably find what u're looking for at...
www.planetsourcecode.com
TheSarlacc
Apr 12th, 2001, 06:01 AM
incase ur wondering, if u own the MS Visual Studio CD, a calc project comes on the CD as an example! use that
Sastraxi
Apr 12th, 2001, 05:47 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.