Solved

C++ Source Code for Calculator

Posted on 1997-11-18
4
170 Views
Last Modified: 2010-04-10
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
0
Comment
Question by:wattm
4 Comments
 
LVL 2

Expert Comment

by:rigansen
ID: 1173504
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
 

Author Comment

by:wattm
ID: 1173505
Edited text of question
0
 
LVL 5

Expert Comment

by:yonat
ID: 1173506
This is a common example in many introductory books, includeing "The C++ Programming Language" by Bjarne Stroustrup.
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 1173507
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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question