6 answers
Source code calculator in Delphi: https://delphi.developpez.com/telecharger/index/categorie/21/Codes-sources-Delphi#JCAgrandsnombres
If you want to learn Delphi, there are some very good free courses here: https://delphi.developpez.com/cours/
If you want to learn Delphi, there are some very good free courses here: https://delphi.developpez.com/cours/
document yourself on Delphi, for the rest it's easy ;-)
you need a textbox for the small screen of the calculator, but it must be locked for writing (there's an attribute to set to false, I don't remember which one)
if a number button is pressed (just fill in the associated procedure for that button)
you display the number in the textbox
if it's an operator (+ / * or -)
- you read what's in the textbox
- you convert the content from a string to numbers (there's the toint procedure in Delphi I think, but be careful when the number is a real or a very large integer: to avoid overflow)
I gave you some ideas, it's up to you to see for the rest
good luck
you need a textbox for the small screen of the calculator, but it must be locked for writing (there's an attribute to set to false, I don't remember which one)
if a number button is pressed (just fill in the associated procedure for that button)
you display the number in the textbox
if it's an operator (+ / * or -)
- you read what's in the textbox
- you convert the content from a string to numbers (there's the toint procedure in Delphi I think, but be careful when the number is a real or a very large integer: to avoid overflow)
I gave you some ideas, it's up to you to see for the rest
good luck
Hello everyone
Creating a "SIMPLE" calculator is quite easy in Delphi. Here is a link:
http://www.phidels.com/php/index.php3?page=debuter/calculette1.htm
For a scientific calculator, it's also possible, but more complex.
Sources are available if you need them.
Creating a "SIMPLE" calculator is quite easy in Delphi. Here is a link:
http://www.phidels.com/php/index.php3?page=debuter/calculette1.htm
For a scientific calculator, it's also possible, but more complex.
Sources are available if you need them.