sub hanoi(n as integer, one as string,two as string,three as string)
if n=1 then
call hmove(one,three)
else
call hanoi(n-1,one,three,two)/n被减到1,执行homve(one,three)完毕后执行ENDSUB后为什么还要跳到ENDIF并n+1?
call hmove(one,three) /当n被加満到原值时,为什么会跳到call hmove(one,three)执行?也就是为什么会从endsub跳 / 到这句?
call hanoi(n-1,two,one,three)
endif
endsub
为什么执行完endif endsub 后会马上跳到call homve(one,three)执行,应该是跳回主程序的呀,为什么?