Thread: Calculator v3.0.0

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    Calculator v3.0.0

    This is version 3 of my calculator program. Featuring more formulas, which can be found at: http://mathworld.wolfram.com
    *NOTE: #23 & #24 are untested. If someone knows if the answer given is right or not, please tell me*
    Any and all feedback is welcome.
    And no, it's still not graphical.

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    It's still not useful.

    There's no way to calculate 23 * 5 + 45 without manually remembering the number. Add a memory feature.

    The program enters an infinite loop if characters are typed in.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    If I could find a tutorial or something on how to do the string stuff, I would....but there's nothing online.

  4. #4
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    To evaluate a string such as 23*5+45 you can convert it to postfix and evaluate that. Its a good exercise in the use of stacks
    Couldn't think of anything interesting, cool or funny - sorry.

  5. #5
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    can you lead me to a tutorial on that please?

  6. #6
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Well, I've got a new addition added. The program now has a memory function. It's still a little buggy on an aspect, so I'm not uploading it until I get it fixed. Here's what it does:
    1] It saves the last number entered into a global double

    2] Saves the value to a file

    3] Gives the user the menu choice again.

    Probably, not the best, but it works. Thanks Sang-drax for telling me that.

  7. #7
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    You might try looking at these plot3d programs,open source and very well written,found them very helpful.Have looked at some of the other files but those stood out as well done.
    http://fraktali.849pm.com/graphpro.html

Popular pages Recent additions subscribe to a feed