I am working on a calculator, and I need to know: is there any code in C++ for a button?
Printable View
I am working on a calculator, and I need to know: is there any code in C++ for a button?
it's qiute confusing speciefy the compiler.... if tc++ u have to design the code yourself.
I think lokeshdb_ms anwser although partially correct is a bit confusing.
draxx, im going to explain this on the basis of u knowing zit on windows programming(sorry if I insult you this way)
I think you want to make a calc.exe like program. This means you need to make a program with a lot of buttons and stuff. This also means you need to make a new window assign properties and the likes.
C or C++ as a bare system has no functionality to code GUI windows apps it is meant for creating console programs. Micrsoft has Visual C++ with all the stuff build right in to the thing to enable you to write nice windows aps. But other compilers are yust as able thanks to the correct libraries and header files. (if you are still looking try dev-cpp as a dev env)
There are tons of ways to create windows aps. Microsoft has released a set of templates that can be used and stuff. Or you can do it yourself.
Now before im tempted to go and write a small tutorial on this subject give this a look over. http://www.winprog.org/tutorial/
hope that clears enough up.(yes windows programming is a bit of a drag at first)
I have Borland's C++ BuilderX...but I'll look at those links anyways...