t; ComboBox3- gt; Text);=StrToInt (Form1- gt; ComboBox4- gt; Text); - gt; Label10- gt; Caption= = Raquo; + Form1- gt; ComboBox1- gt; Text + x + Form1- gt; ComboBox2- gt; Text; - gt; Label11- gt; Caption= ?????? B= + Form1- gt; ComboBox3- gt; Text + x raquo;+Form1-gt;ComboBox4-gt;Text;-gt;Label9-gt;Visible=true;-gt;Label3-gt;Visible=false;-gt;Label4-gt;Visible=false;-gt;Label5-gt;Visible=false;-gt;Label6-gt;Visible=false;-gt;Label7-gt;Visible=false;-gt;Label8-gt;Visible=false;-gt;Label9-gt;Visible=false;
//Form1-gt;BitBtn2-gt;Enabled=false;-gt;ComboBox1-gt;Visible=false;-gt;ComboBox2-gt;Visible=false;-gt;ComboBox3-gt;Visible=false;-gt;ComboBox4-gt;Visible=false;-gt;StringGrid1-gt;Visible=true;-gt;StringGrid2-gt;Visible=true;-gt;Label10-gt;Visible=true;-gt;Label11-gt;Visible=true;-gt;Button1-gt;Visible=true;-gt;BitBtn2-gt;Visible=false;-gt;StringGrid1-gt;ColCount=m+1;-gt;StringGrid1-gt;RowCount=n+1;-gt;StringGrid2-gt;ColCount=l+1;-gt;StringGrid2-gt;RowCount=k+1;-gt;StringGrid1-gt;Cells [0] [0]= i/j raquo ;; - gt; StringGrid2- gt; Cells [0] [0]= i/jraquo;;-gt;StringGrid1-gt;FixedCols=1;-gt;StringGrid1-gt;FixedRows=1;-gt;StringGrid2-gt;FixedCols=1;-gt;StringGrid2-gt;FixedRows=1;-gt;BitBtn6-gt;Visible=true;(i=1; i lt; n + 1; i ++)
{- gt; StringGrid1- gt; Cells [0] [i]=StrToInt (i);
} (j=1; j lt; m + 1; j ++)
{- gt; StringGrid1- gt; Cells [j] [0]=StrToInt (j);
} (i=1; i lt; k + 1; i ++)
{- gt; StringGrid2- gt; Cells [0] [i]=StrToInt (i);
} (j=1; j lt; l + 1; j ++)
{- gt; StringGrid2- gt; Cells [j] [0]=StrToInt (j);
}-gt;N7-gt;Enabled=false;-gt;N8-gt;Enabled=true;-gt;N2-gt;Enabled=true;-gt;BitBtn3-gt;Visible=true;-gt;BitBtn4-gt;Visible=true;-gt;BitBtn5-gt;Visible=true;
}
//---------------------------------------------------------------------------__ fastcall TForm1 :: BitBtn4Click (TObject * Sender)
{= false;=(int **) calloc (n, sizeof (int *)); (i=0; i lt; n; i ++) [i]=(int *) calloc (m, sizeof (int ));=(int **) calloc (k, sizeof (int *)); (j=0; j lt; k; j ++) [j]=(int *) calloc (l, sizeof (int)); ( i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{(Form1- gt; StringGrid1- gt; Cells [j + 1] [i + 1] == )=true;
} (d == false)
{(i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{[i] [j]=StrToInt (Form1- gt; StringGrid1- gt; Cells [j + 1] [i + 1]);
}=A [0] [0]; (i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{(A [i] [j] lt; min)=A [i] [j];
} - gt; Label12- gt; Visible=true; - gt; Label12- gt; Caption= ??????????? ????? = Raquo; + IntToStr (min);
}
{( );
}
//-----------------------------------------------------------------------=false; (i=0; i lt; k; i ++) (j=0; j lt; l; j ++ )
{(Form1- gt; StringGrid2- gt; Cells [j + 1] [i + 1] == )=true ;;
}
///* (s == false)
{(i=0; i lt; k; i ++) (j=0; j lt; l; j ++)
{[i] [j]=StrToInt (Form1- gt; StringGrid2- gt; Cells [j + 1] [i + 1]);
}=B [0] [0]; (i=0; i lt; k; i ++) (j=0; j lt; l; j ++)
{(B [i] [j] lt; min)=B [i] [j];
} - gt; Label13- gt; Visible=true; - gt; Label13- gt; Caption= B= + IntToStr (min);
}
{( B );
}
//------------------------------------------------------------------------- (i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{(Form1- gt; StringGrid1- gt; Cells [j + 1] [i + 1] == )=true;
} (d == false)
{(i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{[i] [j]=StrToInt (Form1- gt; StringGrid1- gt; Cells [j + 1] [i + 1]);
}=A [0] [0]; (i=0; i lt; n; i ++) (j=0; j lt; m; j ++)
{(A [i] [j] gt; max)=A [i] [j];
} - gt; Label14- gt; Visible=true; - gt; Label14- gt; Caption= = Raquo; + IntToStr (max);
}
//-----------------------------------------------------------------------=false; (i=0; i lt; k; i ++) (j=0; j lt; l; j ++ )
{(Form1- gt; StringGrid2- gt; Cells [j + 1] [i + 1] == )=true ;;
}
///* (s == false)
{(i=0; i lt; k; i ++) (j=0; j lt; l; j ++)
{[i] [j]=StrToInt (Form1- gt; StringGrid2- gt; Cells [j + 1] [i + 1]);
}=B [0] [0]; (i=0; i lt; k; i ++) (j=0; j lt; l; j ++)
{(B [i] [j] gt; max)=B [i] [j];
} - gt; Label15- gt; Visible=true; - gt; Label15- gt; Caption= B= + IntToStr (max);
}
}
//---------------------------------------------------------------------------__ fastcall TForm1 :: BitBtn6Click (TObject * Sender)
{- gt; Memo1- gt; Lines- gt; Clear (); (i=1; i lt; n + 1; i ++) (j=1; j lt; m + 1; j ++...