Results 1 to 4 of 4

Thread: I need a Calculator

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Yorba Linda
    Posts
    1

    Question

    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

  2. #2
    Hyperactive Member
    Join Date
    Sep 2000
    Posts
    257
    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.

  3. #3
    TheSarlacc
    Guest

    Cool pondering...

    incase ur wondering, if u own the MS Visual Studio CD, a calc project comes on the CD as an example! use that

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width