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

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

#include <cstdlib>
int main() {
  system("octave");
  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.
http://ds9a.nl/lex-yacc/cvs/lex-yacc-howto.html


and how the internal arithmetic are performed by a computer.For that read
hacker's delight.
http://books.google.com/books?id=iBNKMspIlqEC&printsec=frontcover&dq=%22hacker%27s+delight&hl=en&ei=KdJ6TLCOI4OrcYWEjZIG&sa=X&oi=book_result&ct=result&resnum=1&ved=0CCoQ6AEwAA#v=onepage&q&f=false
: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 article has been dead for over six months. Start a new discussion instead.