void __fastcall TForm1::Button1Click(TObject *Sender)
{
try
{
int i=Edit1->Text.ToInt();
Edit1->Text=AnsiString(10/i);
}
catch (...)
{
ShowMessage("Error");
}
}
{
try
{
int i=Edit1->Text.ToInt();
Edit1->Text=AnsiString(10/i);
}
catch (...)
{
ShowMessage("Error");
}
}
通过 为知笔记 发布