Calc
Calc
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include "math.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
bool bAmal=False,M=False;
String sAmal;
float birinchiSon,ikkinchiSon, Natija,xotiraM;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
if(Label2->Caption.Length()>12)
Label2->Font->Size=20;
else Label2->Font->Size=24;
if(Label2->Caption=="0")
Label2->Caption=((TSpeedButton*)Sender)->Caption;
else if(Label2->Caption.Length()<=16)
Label2->Caption=Label2->Caption+((TSpeedButton*)Sender)->Caption;
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
default:
;
}
if(Label2->Caption.Length()>=15)
Label2->Caption=Label2->Caption.SubString(0, Label2->Caption.Pos(",")+8);
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------