Program to parse and compute mathematical expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • olram008
    New Member
    • Feb 2008
    • 2

    Program to parse and compute mathematical expression

    can someone help me to make a program using c++. this program would compute for the total value of a given variable.. for example i enter the equation 3+4*5\4-1 the output should 7... tnx in advance
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Sure, what do you have so far? Do you know how this is going to be read into your program (file, console window, etc...)? Are there limitations to the types/range of operators (ie, will this parser be able to do calculus - integrals and derivatives)?

    Comment

    • olram008
      New Member
      • Feb 2008
      • 2

      #3
      the operators to be include are addition, subtraction, multiplication and division. parenthesis also included....

      Comment

      Working...