Solved

C++ Source Code for Calculator

Posted on 1997-11-18
4
160 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now