KOD cpp: UKRYJ
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
float *a = new float;
float *b = new float;
float *wynik = new float;
float mnoz (float *a, float *b){
Pointer liczba = *a;
}
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button4Click(TObject *Sender)
{
try {
*a = Edit1->Text.ToDouble();
*b = Edit2->Text.ToDouble();
} catch (...) {
MessageBox(NULL,"Upewnij sie czy aby napewno wpisałes liczbe!!!",NULL,MB_ICONWARNING);
}
*wynik = *a + *b;
Edit3->Text = *wynik;
delete a,b,wynik;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
try {
*a = Edit1->Text.ToDouble();
*b = Edit2->Text.ToDouble();
} catch (...) {
MessageBox(NULL,"Upewnij sie czy aby napewno wpisałes liczbe!!!",NULL,MB_ICONWARNING);
}
*wynik = *a - *b;
Edit3->Text = *wynik;
delete a,b,wynik;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
//mnoz(Edit1->Text.ToDouble(), Edit2->Text.ToDouble());
}
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
float *a = new float;
float *b = new float;
float *wynik = new float;
float mnoz (float *a, float *b){
Pointer liczba = *a;
}
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button4Click(TObject *Sender)
{
try {
*a = Edit1->Text.ToDouble();
*b = Edit2->Text.ToDouble();
} catch (...) {
MessageBox(NULL,"Upewnij sie czy aby napewno wpisałes liczbe!!!",NULL,MB_ICONWARNING);
}
*wynik = *a + *b;
Edit3->Text = *wynik;
delete a,b,wynik;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
try {
*a = Edit1->Text.ToDouble();
*b = Edit2->Text.ToDouble();
} catch (...) {
MessageBox(NULL,"Upewnij sie czy aby napewno wpisałes liczbe!!!",NULL,MB_ICONWARNING);
}
*wynik = *a - *b;
Edit3->Text = *wynik;
delete a,b,wynik;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button5Click(TObject *Sender)
{
//mnoz(Edit1->Text.ToDouble(), Edit2->Text.ToDouble());
}
//---------------------------------------------------------------------------







