...nie chce mi skompilować tego programu????(w zamysle obliczanie kwadratu i szescianu x)
unit miller;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Button2: TButton;
Memo1: TMemo;
Bevel1: TBevel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R .dfm}
var
x,y,z:integer;
procedure TForm1.Button1Click(Sender: TObject);
begin
x:=StrToInt(Edit1.Text);
y:=xx;
memo1.Lines.BeginUpdate;
memo1.Lines.Clear;
memo1.Lines.Add('');
memo1.Lines.Add('');
memo1.Lines.Add('--------------------------------');
memo1.Lines.Add('Kwadrat Podanej liczby x wynosi: '+IntToStr(y));
memo1.Lines.Add('--------------------------------');
memo1.Lines.Add('');
memo1.Lines.Add('');
memo1.Lines.EndUpdate;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
x:=StrToInt(Edit1.Text);
y:=xx;
z:=yx;
memo1.Lines.BeginUpdate;
memo1.Lines.Clear;
memo1.Lines.Add('');
memo1.Lines.Add('');
memo1.Lines.Add('--------------------------------');
memo1.Lines.Add('Szescian Podanej liczby x wynosi: '+IntToStr(z));
memo1.Lines.Add('--------------------------------');
memo1.Lines.Add('');
memo1.Lines.Add('');
memo1.Lines.EndUpdate;
end;
end.[ [cya]