请高手帮忙Delphi这段代码转换成C++Builder代码?

2025-04-05 13:04:54
推荐回答(1个)
回答1:

int total(int x,int y) //调用函数
{
return x+y;
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int x,y,z;
x = 16;
y = 17;
z = total(x,y);//调用函数
label1->Caption =IntToStr(z);
}