|
class ioTest
{
private:
int m_iInt1, m_iInt2;
public:
void __fastcall ioInt(int m_iInt1, int m_iInt2);
};
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall ioTest::ioInt(int m_iInt1, int m_iInt2)
{
String iTemp1, iTemp2;
iTemp1 = Form1->Edit1->Text;
iTemp2 = Form1->Edit2->Text;
m_iInt1 = StrToInt(iTemp1);
m_iInt2 = StrToInt(iTemp2);
}
--------------------------------------------------------------------------
이런식으로 선언을 해준뒤에 Edit1과Edit2에 입력받은 내용을 버튼을 눌렀을 시 한번에 저함수를 호출해서 저장을 하고 싶은데요
어떤식으로 구성을 해야 할까요?? 도와주세요 !!
|