C++ помогите что каждая функция делает и как называется?
C++ помогите что каждая функция делает и как называется?
//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
int n;
MyInt::MyInt(int b)
{
n=b;
a=new double*[n];
for(int b=0;b
}
MyInt::MyInt()
{
n=3;
a=new double*[n];
for(int b=0;b
}
MyInt &MyInt::operator+(const MyInt &ab)
{
for(int i=0;i
}
return *this;
}
void MyInt::show()
{
for(int i=0;i
}
MyInt MyInt::sum()
{
for(int i=0;i
return *this;
}
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit1Change(TObject *Sender)
{
n=StrToFloat(Edit1->Text);
StringGrid1->ColCount=n;
StringGrid1->RowCount=n;
StringGrid2->ColCount=n;
StringGrid2->RowCount=n;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
MyInt ab;
ab.sum();
ab.show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
MyInt a(n);
MyInt b(n);
b=a+a;
b.show();
}
//--------------------------------------------------------------------------