2014/12/28

Question:
在 VB.NET 中,Select Case  的 Case 區塊結尾要不要加 Exit Select 呢?

Solve:
VB.NET: Select Case 不需要在每個 Case 區塊的結尾加 Exit Select。

C#: 需要再每個 case 區塊的結尾加上 break ,否則會出現語法錯誤 。

C/C++: switch case 若沒有在 case 區塊的結尾加上 break,會繼續往下執行其他 case ,直到遇到 break 或 整個 switch case 區塊結束。






28 Dec 2014

0 意見:

張貼留言

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.