
21.02.2011, 13:07
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TMatrix = array [0..2, 0..2] of Byte;
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
arr_matrix: array of TMatrix;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
SetLength(arr_matrix, 20); // 20, 30, или 1000
// матрица 0
arr_matrix[0][0][0]:=000;
arr_matrix[0][1][1]:=011;
// матрица 1
arr_matrix[1][0][0]:=100;
arr_matrix[1][1][1]:=111;
// матрица 2
arr_matrix[2][0][0]:=200;
arr_matrix[2][1][1]:=211;
end;
end.
__________________
Пишу программы за еду.
__________________
|