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
wattmAsked:
Who is Participating?
 
RONSLOWConnect With a Mentor Commented:
This also sounds like a university/college assignments.

Most reputable experts won't give students full code solutions - but will gladly help out with any problems students who are having particular problems with the code they've already written.

0
 
rigansenCommented:
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??


0
 
wattmAuthor Commented:
Edited text of question
0
 
yonatCommented:
This is a common example in many introductory books, includeing "The C++ Programming Language" by Bjarne Stroustrup.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.