Курсовая работа: Калькулятор для матриць
textBox3->Update();
}
private: System::Void button4_Click(System::Object * sender, System::EventArgs * e)
{
int i,j;
double **A,**C;
int n=Convert::ToInt32(textBox4->Text);
double cnst=Convert::ToDouble(textBox5->Text);
A=new double*[n];
C=new double*[n];
for(i=0;i<n;i++)
{
A[i]=new double[n];
C[i]=new double[n];
}
GET_ARRAY(textBox1->Text,A,n);
for(i=0;i<n;i++)
for(j=0;j<n;j++)
{
C[i][j]=cnst*A[i][j];
}
textBox3->Text=CNV_ARRAY(C,n);
textBox3->Invalidate();
textBox3->Update();
}
private: System::Void button5_Click(System::Object * sender, System::EventArgs * e)
{
int i,j;
double **A,**C,g;