|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, | |
Dialogs, StdCtrls, Buttons, jpeg, ExtCtrls; | |
TForm1 = class(TForm) | |
Image1: TImage; | |
Image2: TImage; | |
Image3: TImage; | |
Image4: TImage; | |
Image5: TImage; | |
Image6: TImage; | |
Image7: TImage; | |
Image8: TImage; | |
BitBtn1: TBitBtn; | |
Label1: TLabel; | |
procedure BitBtn1Click(Sender: TObject); | |
{ Private declarations } | |
{ Public declarations } | |
Form1: TForm1; | |
g,m: array[1..4] of integer; | |
i,s,s2,kg,km,j: integer; | |
procedure TForm1.BitBtn1Click(Sender: TObject); | |
for i:= 1 to j do if g[i]= kg then s:=1; | |
1: image1.Visible:=false; | |
2: image2.Visible:=false; | |
3: image3.Visible:=false; | |
4: image4.Visible:=false; | |
for i:= 1 to j do if m[i]= km then s2:=1; | |
1: image5.Visible:=false; | |
2: image6.Visible:=false; | |
3: image7.Visible:=false; | |
4: image8.Visible:=false; | |
label1.Caption:='Идеальная пара!' | |