由于没有学过Delphi因此对Delphi是陌生的,但工作需要于是看了下部分代码。
感觉Delphi的begin和end就是c++/c语言中的大括号,就是一个作用域的限制。
比如:
num := 0;
count := 5;
for i:=0 to count do
begin
num := num + 1;
end;
修改成c/c++就是
int i = 0;
int num = 0;
for( i = 0;i<5;i++)
{//这里的{相当于begin
num = num+1;
}//这里的}相当于end
是个人理解,没有系统学习,不一定对,如果有错欢迎指正。