• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5182
  • Last Modified:

Simple Visual C++ calculator

Hi,

is there someone who has already done a simple calculator in Visual C++. What I need is a sample, which does +, -, *, /. Not more.

If yes, please note a message here and send the complete project to ps2@a-city.de

Yours
Stephan
0
spetrowitsch
Asked:
spetrowitsch
  • 4
  • 4
  • 2
  • +1
1 Solution
 
migelCommented:
Hi!
do you need GUI? or just calculation engine?
for example some code you can found in the  Bjarne Stroustrup "The C++ programing Language" third edition
0
 
jkrCommented:
Check http://www.codeguru.com/misc/Calculator.html

Quote from the page: "This article give you the necessary code to create a text-based calculator. The calculator can handle variables, complex numbers, and draw functions."
0
 
fl0ydCommented:
You might also check out Bjarne Stroustrup's "The C++ Programming Language". If I'm not mistaken he develops a simple, yet expandable calculator in one of the first chapters. Apart from solving your problem it also shows a very comprehensive piece of code -- I was surprised to see how few lines of code are actually needed to make up a complete calculator.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
fl0ydCommented:
Oooops, migel already said so -- just ignore my previous post...
0
 
mousebyteCommented:
looks like he wants his assigment done for him

uni uses software to check if the assignment matches any on the web

and the cutrrent assignment is "calculator" in c++

what is the point in takingthe unit if you are just going to cheat (especially when C++ is so much fun )

mind you it is summer school, so it includes failed students who are going for a remark !
0
 
fl0ydCommented:
Seriously, mousebyte, I would have expected a bit more support from someone who claims to be a teacher, rather than suspicious bad-mouthing. Even if spetrowitsch needs help with his/her assignment I cannot find anything wrong with striving for inspiration. I take it you do not own any books other than those written by yourself and you never went to school either, since you wanted to demystify the dark secrets of mathematics all by yourself. By the way, how is the re-invetion of the wheel coming along?

.f

p.s.: c++ may be fun once you master it [I seriously doubt that you do]. Learning it is still major pain in the ass, though.
0
 
mousebyteCommented:
no i have not written any books

i am a 4th year student myself (with a GPA of 89% if you care to attack my student status thus I also teach)

i get my grades by working hard and learning, it is fine to help and learn by looking

but seriously what do you get out of cheating ? that certainly doesn't help your understanding !

why do you think he asked for the assignment to be posted directly (and the whole project at that) to his email account rather than being posted on here

how did you get your grades ? by hard work or cheating ?

I wouldn't want to work in a team with people who got their grades by cheating rather than learning the stuff


0
 
mousebyteCommented:
and yes I teach at UNIVERSITY

you retard
0
 
mousebyteCommented:
and i never said that i had mastered C++

but yes i like programing very much

you have a serious inferiority complex
0
 
migelCommented:
BTW adding comments to the closed answer after the HALF YEAR is so strange :-)
Is you dig out some arcives? :-))))
IMHO answer is closed and no comments required
bye
0
 
fl0ydCommented:
Actually I should turn this in to the community support, but I'd rather give you the chance right here to set things straight, mousebyte.

.f
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now