배포 허락이고요 가져가서 개량하지면 더욱 좋습니다. 여기!!!코드가!!!
//---------------------------------------------------------------------------
#include
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
int a;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
a=rand();
if(a%3==0)
{
Edit4->Text=Edit1->Text;
}
else if(a%5==0)
{
Edit4->Text=Edit2->Text;
}
else
{
Edit4->Text=Edit3->Text;
}
}
//---------------------------------------------------------------------------
역시 퍼가도 됩니다!!!!!
|