Calculator

This is a discussion on Calculator within the C Programming forums, part of the General Programming Boards category; Hi Im really new at C programming so I came to ask. Ive just created a calculator but it can ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    18

    Calculator

    Hi Im really new at C programming so I came to ask.

    Ive just created a calculator but it can only do equations like x+y, x^y and the like.

    What I want is it to do more than one operation.

    like x+y*z/a...

    What can I do about it?

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Go to Wikipedia, and read up on Reverse Polish Notation and/or infix notation. It's best if you work through your algorithm on paper or with your hands sans computer, before you try to code it up.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    18
    ^
    thanks ill try reading it.

    that was just what i needed cause i dont know what it's called...

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, 03: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, 09:48 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21