Link to home
Start Free TrialLog in
Avatar of spetrowitsch
spetrowitsch

asked on

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
Avatar of migel
migel

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
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Oooops, migel already said so -- just ignore my previous post...
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 !
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.
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


and yes I teach at UNIVERSITY

you retard
and i never said that i had mastered C++

but yes i like programing very much

you have a serious inferiority complex
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
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