为什么提示finanlly是没有定义的标识符啊
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TList *pList=new TList();
char* TheObject="this is an object";
try
{
pList->Add(TheObject);
//调用MessDialog
MessageDlg("the list has "+IntToStr(pList->Count )+"Objects"
,mtInformation,TMsgDlgButtons()<<mbOK,0);
pList->Remove(TheObject);
MessageDlg("The list has "+IntToStr(pList->Count)+"objects",
mtInformation,TMsgDlgButtons()>>mbOK,0);
}
catch(Exception &exception)
{
;
}
finally
{
delete pList;
}
}
为什么提示finanlly是没有定义的标识符啊
_finally是书上的,是印刷错误还是别的
即使换成_finally也是提示没有定义的标识符啊
编译器是BCB6.0