Курсовая работа: Алгоритмы поиска кратчайших покрытий булевых матриц
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm3::FormShow(TObject *Sender)
{
Image1->Hide();
q = 1;
Image1->Width=10*q;
Image1->Height=10*b;
for(int i=0; i<b; i++)
{
Image1->Canvas->MoveTo(0, i*Image1->Height/b);
Image1->Canvas->LineTo(Image1->Width, i*Image1->Height/b);
}
for(int j=0; j<q; j++)
{
Image1->Canvas->MoveTo(j*Image1->Width/q, 0);
Image1->Canvas->LineTo(j*Image1->Width/q, Image1->Height);
}
//Image1->Canvas->Brush->Color=clActiveCaption;
for(int i=0;i<q;i++)
{
for(int j=0;j<b;j++)
{
if(pokr[i][j]==1)
{