منتديات الجلفة لكل الجزائريين و العرب - عرض مشاركة واحدة - آلة حاسبة بسيطة في الدلفي
عرض مشاركة واحدة
قديم 2011-01-21, 00:11   رقم المشاركة : 2
معلومات العضو
hamo soual
عضو جديد
 
إحصائية العضو










افتراضي

جرب هذا من برمجتي

كود PHP:
unit Unit1;
interface
uses
  Windows
MessagesSysUtilsVariantsClassesGraphicsControlsForms,
  
DialogsStdCtrls;
type
  TForm1 
= class(TForm)
    
Edit1TEdit;
    
Edit2TEdit;
    
Button1TButton;
    
Button2TButton;
    
Button3TButton;
    
Button4TButton;
    
Button5TButton;
    
Label1TLabel;
    
procedure Button1Click(SenderTObject);
    
procedure Button2Click(SenderTObject);
    
procedure Button3Click(SenderTObject);
    
procedure Button4Click(SenderTObject);
  private
    { 
Déclarations privées }
  public
    { 
Déclarations publiques }
  
end;
var
  
Form1TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(SenderTObject);
begin
button5
.Caption:=floattostr(strtofloat(edit1.Text)/strtofloat(edit2.Text))
end;
procedure TForm1.Button2Click(SenderTObject);
begin
 button5
.Caption:=floattostr(strtofloat(edit1.Text)*strtofloat(edit2.Text))
end;
procedure TForm1.Button3Click(SenderTObject);
begin
button5
.Caption:=floattostr(strtofloat(edit1.Text)+strtofloat(edit2.Text))
end;
procedure TForm1.Button4Click(SenderTObject);
begin
button5
.Caption:=floattostr(strtofloat(edit1.Text)-strtofloat(edit2.Text))
end;
end









رد مع اقتباس