My calculator program is indeed very simple, there are only common functions commonly found in calculators in general. But you can also develop a more complex calculator. Well in a calculator program that I made this there are functions such as:
- Increase
- Reduction
- Multiplication
- Division
- The rest of the division
Okay immediately wrote us learn together how to make a simple calculator program.
Follow the steps below:
- Open Borland Delphi (Here I am using Borland Delphi 7)
- Click File-> New-> Application
- After performing a new form, add a form component so that it becomes as shown below existing components in my program are:
- After that double click on the Calculate button (Button1) to write program code.
- Tulisakan code below or copy and paste as well be. hehehe
roprtr.ItemIndex div value2; ehsl.Text: = IntToStr (result); end; 4: begin result: = value1 value2 mod; ehsl.Text: = IntToStr (result); end; end; end;TForm1.bclosClick procedure (Sender: TObject) ; begin Application.Terminate;end;
- After all you finish writing the program code (* when copy paste, haha) just click run aja.
- Jrenggggg!!!! Bill Gates made a calculator program has been performed.
Gan Well it's easy, so first of me to learn to make a simple calculator program using Delphi. We are sorry if there was any word from me, do not forget to leave a comment.Friendship greetings from Olwin
source: Copyright © Olwin Carnival Novaldy. 2013
0 comments:
Post a Comment