|
-
Mar 12th, 2001, 01:37 PM
#1
Thread Starter
New Member
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
-
Mar 14th, 2001, 01:08 PM
#2
Hyperactive Member
i don't have a clue what u just said, but u could probably find what u're looking for at...
www.planetsourcecode.com
When I write my code, only God and I know what it means. But a week later, only God knows.
-
Apr 12th, 2001, 06:01 AM
#3
pondering...
incase ur wondering, if u own the MS Visual Studio CD, a calc project comes on the CD as an example! use that
-
Apr 12th, 2001, 05:47 PM
#4
Good Ol' Platypus
Don't try to throw him off 
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.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|