Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > IT форум > Помощь студентам
Регистрация

Восстановить пароль

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 29.09.2010, 13:03   #1
maxdima89
Новичок
Джуниор
 
Регистрация: 26.09.2010
Сообщений: 2
По умолчанию блок-схема алгоритма проги

Ребят плиз нужна блок схема алгоритма данной проги сумма.rar или по программному коду:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, Spin;

type
TForm1 = class(TForm)
SpinEdit1: TSpinEdit;
SpinEdit2: TSpinEdit;
StringGrid1: TStringGrid;
StringGrid2: TStringGrid;
StringGrid3: TStringGrid;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
n,m:byte;
a,b,c:array of array of integer;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var i,j:byte;
begin
randomize;
n:=SpinEdit1.Value;
m:=SpinEdit1.Value;
StringGrid1.ColCount:=m;
StringGrid1.RowCount:=n;
StringGrid2.ColCount:=m;
StringGrid2.RowCount:=n;
StringGrid3.ColCount:=m;
StringGrid3.RowCount:=n;
Setlength(a,n,m);
Setlength(b,n,m);
for i:=0 to n-1 do
for j:=0 to m-1 do
begin
a[i,j]:=random(11)+10;
StringGrid1.Cells[j,i]:=Inttostr(a[i,j]);
end;
for i:=0 to n-1 do
for j:=0 to m-1 do
begin
b[i,j]:=random(21)+10;
StringGrid2.Cells[j,i]:=Inttostr(b[i,j]);
end;
end;

procedure TForm1.Button2Click(Sender: TObject);
var i,j:byte;
begin
Setlength(c,n,m);
for i:=0 to n-1 do
for j:=0 to m-1 do
begin
c[i,j]:=a[i,j]+b[i,j];
StringGrid3.Cells[j,i]:=Inttostr(c[i,j]);
end;
end;

end.
Вложения
Тип файла: rar Сумма.rar (6.4 Кб, 8 просмотров)
maxdima89 вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Блок-схема алгоритма шифрования/расшифрования MontyJo Помощь студентам 6 28.06.2010 21:20
блок схема алгоритма программы (Ассемблер) Sokolova91 Помощь студентам 0 30.03.2010 23:40
блок схема для алгоритма RC6 Anenya.K Софт 5 09.03.2010 18:38
Блок схема алгоритма программы и схема взаимодействия модулей. Lazio Фриланс 3 02.12.2009 23:10
Блок-схема алгоритма NatNiM PHP 7 02.05.2009 18:16