Thread: A C++ calculator

  1. #1
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31

    A C++ calculator

    Does anyone know the source code to make one? It would be quite useful.

    smokeybear
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    The book "the c++ language" by Bjarne have a really nice example of a calculator. That book will even explain it to you

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    If you're talking DOS, it should be quite simple, even if you're a newbie.

  4. #4
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31
    What's the source code for one?
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  5. #5
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    801
    I searched and found a calculator source code. go here I don't know if this was exactly what u were looking for or not though..
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: [email protected] []*[]

  6. #6
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    801
    I just downloaded the code, and found out something! it's not that simple! it's preety advanced and can parse strings!
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: [email protected] []*[]

  7. #7
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    i made a calculator program in c very simple very basic.
    it runs perfectly with bloodshed dev c++ not sure about other compilers.

    not documented but thats because i wrote it right now and dont have time to document
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  8. #8
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    oops forgot to attach... sry
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  9. #9
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31
    Yea I just rewrote it and edited a few things. Do you know if you can add other types of Math if you can just tell me how because I want to. I'm trying to figure out how to.
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help modifying my calculator!!
    By Matus in forum C Programming
    Replies: 5
    Last Post: 03-25-2008, 12:03 PM
  2. GUI Calculator - Critique
    By The Brain in forum Windows Programming
    Replies: 1
    Last Post: 02-25-2006, 04:39 AM
  3. Calculator + LinkedList
    By maro009 in forum C++ Programming
    Replies: 20
    Last Post: 05-17-2005, 12:56 PM
  4. Need help with calculator program
    By Kate in forum C# Programming
    Replies: 1
    Last Post: 01-16-2004, 10:48 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM