Solved

C++ Source Code for Calculator

Posted on 1997-11-18
4
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 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