8 Years
Discussion Span
Last Post by NicAx64

If all you want is an easy solution, here is the easiest of all:

#include <cstdlib>
int main() {
  return 0;

If you are so smart why can't you figure this out yourself?? Smart boys and girls will at least attempt to solve the program and post what they have done. They also read the forum Rules and know that we don't do people's homework for them.


plz tell me how can i make software of calculator in c++.
from smartboy shahzaib

Ego doesn't help. Your own post proves otherwise.
Smart people cannot be anybody because only nobody is smart enough and wait a minute you are somebody!

Stop arrogance and do something


oky SmartBoy!
never mind,
I'll help you.

Are you oky with the core C++? (your smart so I'm sure on this).
Then the next thing that you need to know is http://en.wikipedia.org/wiki/Finite-state_machine
so what actually a calculator does is it parses the input using a simple state
machine and return the result or an ERROR! .

And that is a very simple calculator, but you are a smartboy so you need to
write a big full functional calculator. So you probably need to know how the
compilers are working. So you need to read books about compiler theory.If you
can't afford the books for money then you could find free tutorials and video
lectures.A good tutorial is here.

and how the internal arithmetic are performed by a computer.For that read
hacker's delight.
:NOTE: this book title is "hacker's" but that's not the "hacker" that you mean here.
this book is not discussing how to use a exploit a particular security vulnerability
and break into someones computer.This is about arithmetic.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.