- UID
- 58214
- 好友
注册时间2010-9-27
威望值 点
最后登录1970-1-1
激情值 点
积分1055
认证分 分
齿轮币 枚
回帖0
|

楼主 |
发表于 2010-11-14 11:25
|
显示全部楼层
回复 洪都诺夫斯基 的帖子
洪兄,不需要什么特殊的学习,
你原来用VB,用这个的话,不需要任何学习,
只有几个不同:
循环:VB 有:FOR ,WHILE, DO
for i=0 to N
exit for
next i
....
这个只有:ncycle (次数循环),wcycle (条件循环)
ncycle(i,0 to N)
...
exit ncycle
...
end ncycle
wcycle(a>b) : 当条件为真时开始循环
...
exit wcycle
...
end wcycle
或:
wcycle()
exit wcycle
end wcycle(a>b): 条件为真时结束循环
条件转移: VB 有:if then endif
if then
elseif then
elseif then
...
else
endif
这个: if end if
if
else if
else if
...
else
end if
|
|