Link to home
Start Free TrialLog in
Avatar of wattm
wattm

asked on

C++ Source Code for Calculator

Looking for C++ Source Code for a four function (add,subtract, multiply, divide) calculator using classes can anyone help me, PLEASE!!!!!
Additional info: application to simulate a simple four function electronic calculator, must contain two registers to store operands in use, one register to store result of arithmetic operation, a register to store error state
and a register to store name of most recent arithmetic operation. Program is to have an object-oriented approach
Avatar of rigansen
rigansen

Sorry but I don't understand the whole idea !!

Are you talking about parsing a string like "234*(2+5)/9" and then calculating the final result ??

I think you should make yourself a little more clear... ok??


Avatar of wattm

ASKER

Edited text of question
This is a common example in many introductory books, includeing "The C++ Programming Language" by Bjarne Stroustrup.
ASKER CERTIFIED SOLUTION
Avatar of RONSLOW
RONSLOW

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial