小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

【例題】選擇

 夜的影子 2018-01-31
  1. dim as integer x = 5
  2. dim as integer y = -1
  3.  
  4. '' 順序檢查(簡化了IF語句)
  5. select case x
  6. case 1
  7. print "it's 1"
  8. case 2, 3, 4
  9. print "it's one of 2, 3 or 4"
  10. case is >= 5
  11. print "it's >= 5"
  12. case y
  13. print "same as y"
  14. case else
  15. print "something else"
  16. end select
  17.  
  18. '' 使用跳轉表(如果有大量的檢查這樣速度會更快,但只能用來檢查常量):
  19. select case as const x
  20. case 1
  21. print "it's 1"
  22. case 2, 3, 4
  23. print "it's one of 2, 3 or 4"
  24. case 5
  25. print "it's 5"
  26. case else
  27. print "something else"
  28. end select

    本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多